- Reset master to upstream/main (16,697 commits) - Overlay 2,271 local-only files (skills, tools, workspace, configs, apps) - Restore IDENTITY.md and USER.md templates - Build verified, gateway running, Discord working Co-Authored-By: Claude Opus 4.6 <[email protected]>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
# Example OpenClaw configuration using Claude Code CLI subscription
|
|
#
|
|
# This configuration shows how to use your Claude.ai subscription
|
|
# instead of API calls for all Claude models.
|
|
#
|
|
# Prerequisites:
|
|
# 1. Install Claude Code CLI: curl -fsSL https://claude.ai/install.sh | sh
|
|
# 2. Authenticate: claude login
|
|
# 3. Copy this config to ~/.openclaw/config.yaml
|
|
|
|
agents:
|
|
defaults:
|
|
# Register Claude CLI models (required for allowlist)
|
|
models:
|
|
claude-cli/opus:
|
|
alias: my-opus
|
|
claude-cli/sonnet:
|
|
alias: my-sonnet
|
|
claude-cli/haiku:
|
|
alias: my-haiku
|
|
|
|
# Use Claude Code subscription for primary model
|
|
model:
|
|
primary: claude-cli/sonnet
|
|
fallbacks:
|
|
- claude-cli/opus
|
|
- claude-cli/haiku
|
|
|
|
# Gateway configuration (standard)
|
|
gateway:
|
|
mode: local
|
|
bind: loopback
|
|
port: 18789
|
|
auth:
|
|
mode: token
|
|
token: your-secure-token-here
|
|
|
|
# Optional: Customize CLI backend if needed
|
|
# agents:
|
|
# defaults:
|
|
# cliBackends:
|
|
# claude-cli:
|
|
# # Override command path if needed
|
|
# command: /custom/path/to/claude
|
|
# # Customize timeout
|
|
# timeoutSeconds: 300
|