chore: align with upstream openclaw/openclaw and overlay local additions
- 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 <noreply@anthropic.com>
This commit is contained in:
46
docs/examples/config-claude-code-cli.yaml
Normal file
46
docs/examples/config-claude-code-cli.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user