Skip to main content

Claude Code

Install, authenticate, and resume Anthropic's Claude Code inside Daintree, including provider templates and session resume.

Updated
Reviewed

Claude Code

Claude Code is Anthropic's CLI coding agent. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.

Commandclaude
ShortcutCmd/Ctrl+Alt+C
ColorTerracotta (#CC785C)
PlatformsmacOS, Windows, Linux

Install & Authenticate

Install from npm: npm install -g @anthropic-ai/claude-code. Run claude once and follow the prompts to authenticate. Daintree detects Claude via ~/.claude/ and provider environment variables, then pins it to the toolbar automatically. For the full setup, see the Claude Code docs.

Provider templates (Anthropic, Z.AI, OpenRouter, DeepSeek, Ollama, and a custom OpenAI-compatible template) are available when you create a preset. Create a preset From template and the non-secret env vars (base URL, model aliases, timeout) are pre-filled, with API key fields left blank for you. See Presets for the full workflow.

Resuming Sessions

Daintree captures Claude's session ID on shutdown and resumes with claude --resume <session-id>. Quit a session cleanly with /quit so the ID is captured. Session cost and token data is also parsed from Claude's terminal output, which is why the completed state chip shows cost for Claude sessions. For the resume mechanics across all agents, see Session Resume.

Tip
If claude isn't detected after install, confirm it's on your PATH (which claude on macOS/Linux, where claude on Windows), then restart Daintree. See Agent Availability for the five detection states.