Skip to main content
A personal API key lets you reach your workspace’s models from outside Langdock, so you can use them in coding tools like Claude Code, GitHub Copilot, or Codex, or in a project of your own. The key authenticates as you and counts towards your usage budget. Your admin can also allow Workflow Write API on personal keys.
API keys section in account settings showing shared usage progress as percentages and personal API spend this month
Your admin has to give you access before API keys appears in your account settings. This access controls whether the page appears. Personal API usage counts against your effective personal budget and the workspace spend limit. If your effective personal budget is exhausted, personal API requests return an error instead of using a fallback model. If the workspace spend limit is reached, personal API requests return an error instead of using a fallback model. Your workspace admin must raise the limit or set it to Unlimited, or you must wait for the current billing period to reset.

Create a personal API key

1

Open API keys

2

Enter the key details

Your API keys section with the Create API key button
Click Create API key. Give the key a name that tells you where it’s used, so you know which tool to update later, and choose when it expires.
3

Create and copy the key

Create a new API key dialog with fields for name and expiry and a summary of what the key can do
Click Create API key, then copy the key and store it somewhere safe. Langdock shows it once and never again.
Never share a personal API key. It authenticates as you and spends your budget, so anyone who has it is working as you. Use a workspace API key for shared applications and automations, and see API key best practices for storing keys safely.
The page shows shared usage progress as a percentage, separate from Personal API spend this month. Cloud shows Shared extra usage. BYOK and dedicated workspaces show Shared included usage this week and Shared extra usage, each with its own reset date. If your individual limit has nothing left, personal API requests return an error instead of using a fallback model. You can request a higher limit when usage requests are enabled, or ask your workspace admin. If the workspace has reached its spend limit, increasing your individual limit does not restore API access. Your workspace admin must raise the workspace limit or set it to Unlimited, or you must wait for the current billing period to reset.

Connect a tool

Connect your tools walks you through the setup for Claude Code, Claude Desktop, OpenCode, Codex, GitHub Copilot, 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. See the Langdock Completion APIs for an overview of the available APIs. Replace YOUR_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. For an OpenAI compatible model in the global region, use /openai/global/v1 and list models at /openai/global/v1/models. On dedicated deployments the base URL starts with your deployment origin instead of https://api.langdock.com.
Claude Code uses the Anthropic Messages API through Langdock.
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

Claude Code speaks the Anthropic Messages API, which Langdock serves at the base URL above. All requests are now routed through your workspace.
Your key works with the OpenAI compatible Chat Completions and Responses APIs, the Anthropic Messages API, the Google Completion API, and the Mistral Completion API. Which of them you can call depends on the models configured for your workspace. Available models shows what you can pick for the built-in OpenAI and Anthropic guides, and for Google and Mistral you follow the API documentation instead. If your admin allows Workflow Write API, a new key can create, update, and publish workflows you can edit. Existing keys keep the scopes they were created with. Workflow Deletion API cannot be granted on a personal key. The Agent, Embedding, Knowledge Folder, Integrations, Skills, Prompts, Usage Export, User Management, and Audit Logs APIs need a workspace API key with the matching scope. A workspace API key can also receive Meetings Read API when General access is on for Meetings. That key can read notes and transcripts of meetings in folders shared with the whole workspace. Completion is included on every personal API key. Your admin can enable more scopes, including Agents, Skills, Prompts, Embedding, Knowledge Folder, Integrations, and Workflows. User Management, Audit Logs, Usage Export, Compliance, and Automations still need a workspace API key. If your admin allows Workflow Write API, a new key can create, update, and publish workflows you can edit. Existing keys keep the scopes they were created with. Workflow Deletion API cannot be granted on a personal key. A workspace API key can also receive Meetings Read API when General access is on for Meetings. That key can read notes and transcripts of meetings in folders shared with the whole workspace.

Rotate or revoke a key

Open the menu next to a key under Your API keys:
  • Rotate key replaces the secret and shows the new one once. The old one stops working immediately, so update every connected tool right away.
  • Revoke key switches the key off for good.
Your workspace admin can revoke your keys as well. They also stop working if your admin takes away your access to personal API keys or deactivates your workspace membership.