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 or Codex, or in a project of your own. The key authenticates as you, which means it spends your usage budget and reaches the completion endpoints only.
API keys section in account settings showing the extra usage budget and when it resets
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 also tracks how much of your budget you have used and when it resets. 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, 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. Personal API keys work only with the completion endpoints. 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.

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.