# Claude Code on ORB Cloud

Zero config. Claude Code reads `ANTHROPIC_BASE_URL` automatically.

## orb.toml

```toml
[agent]
name = "my-agent"
lang = "binary"
entry = "src/watchdog.sh"

[agent.env]
HOME = "/root"
CLAUDE_CODE_OAUTH_TOKEN = "${CLAUDE_CODE_OAUTH_TOKEN}"

[source]
git = "https://github.com/you/your-agent"
branch = "main"

[build]
steps = [
  "npm install -g @anthropic-ai/claude-code",
  "pip install --break-system-packages claude_agent_sdk",
]

[llm]
base_url = "https://api.anthropic.com"

[resources]
runtime = "4GB"
disk = "8GB"
```

## z.ai Coding Plan

To use GLM models instead of Claude, change one line:

```toml
[llm]
base_url = "https://api.z.ai/api/anthropic"
```

No other changes needed. Claude Code sees GLM-4.7 mapped to the Sonnet tier.

## What ORB does

- Sets `ANTHROPIC_BASE_URL=http://127.0.0.1:8080` on the agent process
- Claude Code reads this and sends all LLM calls through the proxy
- Proxy forwards to your `base_url`, buffers responses
- Agent checkpoints during LLM waits
