Skip to content

Cloudflare Workers AI not working #18552

Closed as not planned
Closed as not planned

Description

@carlosadcaraujo

Description

/connect > workers ai > add api key > test with workers ai model

"Not Found: {"result":null,"success":false,"errors":[{"code":7003,"message":"Could not route to /client/v4/accounts/$%7BCLOUDFLARE_ACCOUNT_ID%7D/ai/v1/chat/completions, perhaps your object identifier is invalid?"}],"messages":[]}!

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 21, 2026
  2. Vishal2002 commented on Mar 22, 2026

    @Vishal2002

    I tried it and worked fine for me with Cloudflare Worker AI

  3. rekram1-node commented on Mar 22, 2026

    @rekram1-node
    Collaborator

    please provide me more info like what account you are using

    also are u setting that env var for ur account id?

  4. Vishal2002 commented on Mar 22, 2026

    @Vishal2002

    I am setting the env var for Cloudflare AI gateway from the TUI.

  5. rekram1-node commented on Mar 22, 2026

    @rekram1-node
    Collaborator

    sorry i was replying to OP who is having issue, not you

  6. kobicovaldev commented on Apr 13, 2026

    @kobicovaldev
    Contributor

    In the docs it says it will ask for the account id and and gateway id but I don't think it did ask for that and thus if you don't set the correct env vars and only enter the api key it won't work. I ran into something similar.

  7. jiangyums commented on Apr 21, 2026

    @jiangyums

    the bug is in the vscode plugin,and desktop is ok

  8. jiangyums commented on Apr 21, 2026

    @jiangyums

    the bug is in the vscode plugin,and desktop is ok

    windows10,i have set Environment Variables ,account id and api key

  9. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions