可以到这里去体验下 不太清楚是不是免费的账号也可以,不过我这个是在这个平台申请了一个自己的域名。简单来说如下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?
You can go here to give it a try. I'm not sure if free accounts are also supported, but I applied for my own domain on this platform. In short, it looks like this: 1. Create a free Cloudflare account 2. Go to Workers AI and copy your Account ID 3. Create an API Token The place I marked in Figure 2 is where you need to use the account in Open Code configuration. On the left, select worker AI, and on the right, click RESET API. Here, the main thing is to get the account ID. Then, create an API token (just one token is needed). Remember the account number during creation, and then configure the Connect in Open Code. Enter the account, enter the token, and that's it. Test it out.


