可以到这里去体验下 不太清楚是不是免费的账号也可以,不过我这个是在这个平台申请了一个自己的域名。简单来说如下1. Create a free Cloudflare account 2. Go to Workers AI and copy your Account ID 3. Create an API Token我标记2的这个地方就是账户 Open Code里面配置的时候需要用到左边选择worker AI 然后右边RESET API 在这里主要就是获取账户ID。然后就是创建一个API的令牌,也就是一个token就可以了创建的时候记好账户
然后就是在Open Code里边配置Connect。
填入账号,填入token,然后就可以了。测试下
I'm opencode, an interactive CLI tool that helps with software engineering tasks. I'm powered by the @cf/zai-org/glm-5.2 model.I can help you with things like:- Reading, writing, and editing code- Searching and exploring codebases- Running commands (git, npm, tests, etc.)- Debugging and refactoring- Answering questions about your codeWhat would you like to work on?
