#10577: Ask Sage provider integration
docs
scripts
commands
docker
agents
stale
Cluster:
Model Provider Integrations
**Note:** This PR was assisted by Claude.
## Description
This PR integrates Ask Sage as a model provider for OpenClaw, specifically US Government and non-gov allowed Claude models: 3.5 Sonnet gov, 4 Sonnet gov, and 4.5 Sonnet gov, 4 Sonnet, 4 Opus, 4.5 Haiku, 4.5 Sonnet, 4.5 Opus, and 4.6 Opus.
Relevant markdown documentation has also been created, along with some bash scripts and Dockerfiles for testing the integration in a sandboxed environment, instead of on a local machine.
## Testing
This PR has been tested with the newly created Docker/bash tests, and the OpenClaw provided tests within a Docker container.
## Session Log
When running `bash scripts/test-asksage-complete.sh`, here is part of the output showing that it is able to connect to the Ask Sage models
```
Running agent...
Config was last written by a newer OpenClaw (2026.2.4); current version is 0.0.0.
{
"payloads": [
{
"text": "Hello! 👋\n\nYes, I'm working through Ask Sage and currently running on **asksage/google-claude-45-sonnet** (Claude 3.5 Sonnet via Google).\n\nEverything's operational and ready to help. What can I do for you?",
"mediaUrl": null
}
],
"meta": {
"durationMs": 5058,
"agentMeta": {
"sessionId": "a985cbfe-b201-4712-b036-8504c5214b08",
"provider": "asksage",
"model": "google-claude-45-sonnet",
"usage": {
"input": 10,
"output": 233,
"cacheRead": 0,
"cacheWrite": 13632,
"total": 13875
}
}...
```
This PR would complete the discussion #8248
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
- Adds a new `asksage` provider with a fixed model catalog and default model, wiring it into implicit provider resolution and onboarding/auth-choice flows.
- Introduces Ask Sage-specific docs plus Docker/bash scripts intended to test the integration without installing Node/pnpm on the host.
- Updates auth-choice grouping and preferred-provider mapping so users can select Ask Sage during onboarding.
- Main functional risk is build correctness around the new provider/model catalog and credential persistence path.
<h3>Confidence Score: 2/5</h3>
- This PR is not safe to merge until a build-breaking syntax issue in the new provider file is fixed and the credential write semantics are clarified.
- The Ask Sage provider integration appears straightforward, but `src/agents/asksage-models.ts` currently has a definite syntax error (missing statement terminator after the catalog array) which will fail compilation. There is also an async/await inconsistency in the new credential setter that could cause onboarding to proceed before credentials are persisted if the underlying storage is async.
- src/agents/asksage-models.ts, src/commands/onboard-auth.credentials.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#7113: feat(providers): add CommonStack provider support
by flhoildy · 2026-02-02
73.5%
#20965: feat: Add comprehensive model configuration and discovery for various…
by rodeok · 2026-02-19
73.4%
#7272: Models: add SiliconFlow provider
by qychen2001 · 2026-02-02
73.2%
#14393: feat: add standalone DeepSeek provider support
by osoulmate · 2026-02-12
72.6%
#12020: feat: add AIsa provider, production-grade Chinese AI models
by renning22 · 2026-02-08
72.6%
#12059: feat(agents): Add Azure AI Foundry credential support
by lisanyambere · 2026-02-08
72.5%
#9739: #9291 fix(models): preserve existing models in models.json when mer...
by ximzzzzz · 2026-02-05
72.0%
#11833: 在openclaw onboard过程中,在model/auth provider选项中增加Huawei Cloud MAAS供应商的选择
by wukunming168 · 2026-02-08
71.8%
#15632: fix: use provider-qualified key in MODEL_CACHE for context window l...
by linwebs · 2026-02-13
71.5%
#3792: add ShengSuanYun (胜算云) as a model provider
by shengsuan · 2026-01-29
71.4%