> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudsome-inc.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# IDE & Tool Integration

Cloudsome is compatible with popular AI coding tools. Here's how to configure Claude Code, Codex, OpenCode, and CC Switch.

## Claude Code

Set environment variables in your terminal to use Cloudsome as the Claude Code backend. You can also persist settings in \~/.claude/settings.json.

[Install Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview)

### Terminal environment variables

> [tab] macOS / Linux
>
> ```bash theme={null}
> export ANTHROPIC_BASE_URL="https://api.cloudsome-inc.ai"
> export ANTHROPIC_AUTH_TOKEN="sk_live_your_key_here"
> export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=0
> export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
> ```

> [tab] Windows
>
> ```bat theme={null}
> set ANTHROPIC_BASE_URL=https://api.cloudsome-inc.ai
> set ANTHROPIC_AUTH_TOKEN=sk_live_your_key_here
> set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=0
> set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
> ```

### Config file (recommended) — `~/.claude/settings.json`

```json theme={null}
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.cloudsome-inc.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk_live_your_key_here",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5-20251001",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-6",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
    "ANTHROPIC_MODEL": "claude-opus-4-6",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "0",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}
```

## Codex

After setting CLOUDSOME\_API\_KEY, configure Cloudsome as a custom provider in \~/.codex/config.toml. The default model is GPT-5.6 Sol with high reasoning effort, and requests use the Responses API.

[Install Codex](https://learn.chatgpt.com/docs/codex/cli)

### Terminal environment variable

> [tab] macOS / Linux
>
> ```bash theme={null}
> export CLOUDSOME_API_KEY="sk_live_your_key_here"
> ```

> [tab] Windows
>
> ```bat theme={null}
> set CLOUDSOME_API_KEY=sk_live_your_key_here
> ```

### Config file (recommended) — `~/.codex/config.toml`

```toml theme={null}
model = "gpt-5.6-sol"
model_reasoning_effort = "high"
model_provider = "cloudsome"

[model_providers.cloudsome]
name = "Cloudsome Test"
base_url = "https://api.cloudsome-inc.ai/v1"
env_key = "CLOUDSOME_API_KEY"
wire_api = "responses"
```

## OpenCode

Create an opencode.json config file in your project root to use Cloudsome as the provider.

[Install OpenCode](https://opencode.ai)

```json theme={null}
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "cloudsome": {
      "models": {
        "claude-haiku-4-5-20251001": {
          "name": "Claude Haiku 4.5"
        },
        "claude-opus-4-6": {
          "name": "Claude Opus 4.6"
        },
        "claude-sonnet-4-6": {
          "name": "Claude Sonnet 4.6"
        }
      },
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "apiKey": "sk_live_your_key_here",
        "baseURL": "https://api.cloudsome-inc.ai/v1",
        "setCacheKey": true
      }
    }
  }
}
```

## CC Switch

CC Switch is a multi-provider switcher for Claude Code. After installation, import Cloudsome config with a single click via deep link.

[Install CC Switch](https://github.com/farion1231/cc-switch)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.