DocumentationIntegrations

Integrations

Claude Code

Use the Messages API with the Claude models available in your XEDOC workspace.

Connect automatically

#

Install Node.js 20 or later, fully quit the selected client, and run this command. The assistant checks your key, shows the files it will update, and saves a private backup before applying changes.

Windowspowershell
npx.cmd --yes https://xedoc.top/downloads/xedoc-setup-1.0.1.tgz --clients claude-code

Start Claude Code

#
Terminalshell
claude

Use /model to choose a configured Claude model. Start a new session after changing the connection.

BASE URL
https://api.xedoc.top

Configure manually

#

Merge the env object into ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json). Preserve existing permission, hook and other settings. If CLAUDE_CONFIG_DIR is set, use that directory instead.

settings.jsonjson
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.xedoc.top",
    "ANTHROPIC_AUTH_TOKEN": "sk-xedoc-YOUR_KEY",
    "ANTHROPIC_MODEL": "claude-opus-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5"
  }
}

Use XEDOC model IDs

Your client’s default Anthropic model alias may differ from XEDOC’s canonical IDs. Use one returned by /v1/models, such as claude-opus-5. Do not add a [1m] suffix.

Reference: Claude Code model configuration.

Using the desktop app?

#

Claude Desktop has a separate third-party inference configuration. Changing Claude Code’s settings.json does not configure that connection. Follow the Claude Desktop guide.