feat: `obol openclaw set-model` for per-instance provider/model switching
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go, helm, kubernetes
- Domain
- cli, devops, infrastructure
Research direction
Start by tracing the existing obol openclaw onboard --interactive flow and the buildLiteLLMRoutedOverlay() and buildDirectProviderOverlay() helpers. Define how set-model updates the per-instance overlay, handles routing and credentials, validates the requested model, and performs helmfile sync; done means all listed CLI modes work without full re-onboarding.
Written by the indexing model from the issue text.
Description
Problem
Changing an OpenClaw instance's model or provider routing requires re-onboarding (obol openclaw onboard --interactive) or manually editing the values-obol.yaml overlay. There's no quick CLI verb to switch an existing instance's model or toggle between LiteLLM-routed and direct provider access.
Proposed UX
# Switch model (still through LiteLLM)
obol openclaw set-model obol-agent --model gpt-4.1
# Switch to direct OpenAI (bypass LiteLLM)
obol openclaw set-model obol-agent --provider openai --direct --api-key sk-proj-...
# Switch back to LiteLLM-routed
obol openclaw set-model obol-agent --model claude-sonnet-4-6
Context
The infrastructure already supports both routing modes:
- LiteLLM-routed:
buildLiteLLMRoutedOverlay()— all traffic throughlitellm:4000/v1 - Direct provider:
buildDirectProviderOverlay()— native API access, key in per-instance Secret
Currently only accessible via obol openclaw onboard --interactive which recreates the full deployment. A set-model verb would patch the overlay and re-sync without full re-onboarding.
Scope
-
obol openclaw set-model <id> --model <name>— change primary model, keep current routing -
obol openclaw set-model <id> --provider <name> --direct— switch to direct provider -
obol openclaw set-model <id> --provider litellm— switch back to LiteLLM routing - Re-sync instance after overlay change (
helmfile sync) - Validate model exists in LiteLLM config (for routed mode) or provider API (for direct mode)
- Dominant language
- Go
- Stars
- 11
- Forks
- 1
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 39
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ObolNetwork/obol-stack
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ObolNetwork/obol-stack#612 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
ObolNetwork/obol-stack#829 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
ObolNetwork/obol-stack#828 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
ObolNetwork/obol-stack#821 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
ObolNetwork/obol-stack#807 · 1 comment ·
Maintainers usually reply within 1 day
All issues in ObolNetwork/obol-stack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
prime-radiant-inc/evener#4223 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-telemetry/opentelemetry-go-compile-instrumentation#1467 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
yetone/magpie#1490 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
modelcontextprotocol/go-sdk#1367 · 1 comment ·
Maintainers usually reply within 1 day