← Back to PRs

#10577: Ask Sage provider integration

by alex-mcgraw-askSage open 2026-02-06 17:50 View on GitHub →
docs scripts commands docker agents stale
**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