Add complete OAuth token refresh and sync solution
- Setup wizard with auto-detection of OpenClaw paths and Claude CLI - Token sync watcher (inotifywait) for real-time credential updates - Auto-refresh trigger timer that runs Claude CLI every 30 min - Supports Claude CLI in Docker container or on host - Temporary ANTHROPIC_BASE_URL override for container environments - Anthropic model configuration for OpenClaw - Auth profile management (fixes key vs access field) - Systemd services and timers for both sync and trigger - Comprehensive documentation and troubleshooting guides - Re-authentication notification system Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
32
configs/openclaw-anthropic.json
Normal file
32
configs/openclaw-anthropic.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"_comment": "Anthropic model configuration for OpenClaw. Merge into openclaw.json via setup wizard.",
|
||||
"_warning": "Do NOT add 'anthropic' to models.providers — the built-in provider handles it. Adding a custom one causes double /v1 in URLs resulting in 404 errors.",
|
||||
|
||||
"agents_defaults_model": {
|
||||
"primary": "anthropic/claude-opus-4-6",
|
||||
"fallbacks_to_add": [
|
||||
"anthropic/claude-sonnet-4-6"
|
||||
]
|
||||
},
|
||||
|
||||
"agents_defaults_models": {
|
||||
"anthropic/claude-opus-4-6": {
|
||||
"alias": "Claude Opus 4.6 (Max)"
|
||||
},
|
||||
"anthropic/claude-sonnet-4-6": {
|
||||
"alias": "Claude Sonnet 4.6 (Max)"
|
||||
}
|
||||
},
|
||||
|
||||
"auth_profile": {
|
||||
"anthropic:default": {
|
||||
"type": "oauth",
|
||||
"provider": "anthropic",
|
||||
"access": "@@TOKEN@@"
|
||||
}
|
||||
},
|
||||
|
||||
"env_vars": {
|
||||
"ANTHROPIC_OAUTH_TOKEN": "@@TOKEN@@"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user