Skip to content

Commit f6d0fd1

Browse files
authored
docs(providers): note that ANTHROPIC_API_KEY requires an API account, not a subscription (#1542)
* docs(providers): note that ANTHROPIC_API_KEY requires an API account, not a subscription Anthropic subscription users authenticate via OAuth, not an API key, causing a silent failure when creating the provider. Adds a Note callout in the provider type table and quickstart guide directing subscription users to generate an API key from console.anthropic.com. Closes #620 * docs(providers): fix Note placement and remove subscription brand names Move the Note callout in manage-providers.mdx to after the complete provider type table so it does not break table rendering. Remove subscription brand names from both Note callouts.
1 parent f1ed347 commit f6d0fd1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/get-started/quickstart.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ The CLI prompts you to create a provider from local credentials.
6060
Type `yes` to continue.
6161
If `ANTHROPIC_API_KEY` is set in your environment, the CLI picks it up automatically.
6262
If not, you can configure it from inside the sandbox after it launches.
63+
64+
<Note>
65+
`ANTHROPIC_API_KEY` is an API key from [console.anthropic.com](https://console.anthropic.com), not a subscription token. Subscription users must generate a separate API key.
66+
</Note>
6367
</Tab>
6468

6569
<Tab title="OpenCode">

docs/sandboxes/manage-providers.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ The following provider types are supported.
255255
| `openai` | `OPENAI_API_KEY` | Any OpenAI-compatible endpoint. Set `--config OPENAI_BASE_URL` to point to the provider. Refer to [Inference Routing](/sandboxes/inference-routing). |
256256
| `opencode` | `OPENCODE_API_KEY`, `OPENROUTER_API_KEY`, `OPENAI_API_KEY` | OpenCode |
257257

258+
<Note>
259+
`ANTHROPIC_API_KEY` is an API key from [console.anthropic.com](https://console.anthropic.com), not a subscription token. Subscription users must generate a separate API key from the Anthropic Console.
260+
</Note>
261+
258262
<Tip>
259263
Use the `generic` type for any service not listed above. You define the
260264
environment variable names and values yourself with `--credential`.

0 commit comments

Comments
 (0)