
Your admin has to give you access before API keys appears in your account settings, and you need usage budget to spend. On Langdock Cloud that means extra usage is enabled and your effective extra usage limit is above zero. On BYOK and dedicated deployments it means your admin set an individual extra usage limit above zero, where plan and group limits don’t apply to personal keys and extra usage doesn’t have to be enabled. Whatever you spend through the key comes out of the same budget as your chat and agent usage. On trial workspaces you can only create a key once API keys have been enabled for the trial.
Create a personal API key
1
Open API keys
2
Enter the key details

3
Create and copy the key

Connect a tool
Connect your tools walks you through the setup for Claude Code, Claude Desktop, OpenCode, Codex, and direct API calls with cURL. You can also connect Cursor with the same key. Pick an available model and the examples update to match, then follow the steps for your tool. The guides below match that setup. ReplaceYOUR_API_KEY with your key and your-model-id with an ID from Available models. Use eu or us to match your workspace’s model region, or copy the exact base URL from Connect your tools. On dedicated deployments the base URL starts with your deployment origin instead of https://api.langdock.com.
- Claude Code
- Claude Desktop
- Cursor
- Codex
- OpenCode
- API / cURL
Claude Code uses the Anthropic Messages API through Langdock.Claude Code speaks the Anthropic Messages API, which Langdock serves at the base URL above. All requests are now routed through your workspace.
1
Check available Claude models
2
Add your settings
Add this to
~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json), and create the file if it does not exist. Replace the model IDs with ones from the previous step, and make sure ANTHROPIC_API_KEY is not set:3
Start Claude Code
Rotate or revoke a key
Open the menu next to a key under Your API keys:- Rotate key replaces the secret. The old one stops working immediately, so update every connected tool with the new key.
- Revoke key switches the key off for good.