Skip to content

feat: add nagaai provider - #761

Open
zentixua wants to merge 2 commits into
charmbracelet:mainfrom
naga-ai-hub:feat/nagaai-v2
Open

zentixua wants to merge 2 commits into
charmbracelet:mainfrom
naga-ai-hub:feat/nagaai-v2

Conversation

@zentixua

@zentixua zentixua commented Nov 16, 2026 •

Copy link
Copy Markdown

Adds NagaAI, an OpenAI-compatible gateway, as provider nagaai. Crush users can then pick Claude Sonnet 5.5, GPT-6.1 Sol and MiniMax M3.1 Flash on NagaAI with NAGA_API_KEY. I work on NagaAI.

  • Type: responses at https://api.naga.ac/v1, like Cortecs. The endpoint is stateless; Crush already sends store: false with the full history each turn.
  • Default models: Claude Sonnet 5.5 large, MiniMax M3.1 Flash small.
  • Limits: context windows from the public GET /v1/models. NagaAI publishes no output cap, so default_max_tokens matches the Vercel entries for the same models; each one was accepted in the live check below.
  • Prices: USD per 1M tokens from the same list on 2026-11-23, with cache reads and, for Claude Sonnet 5.5 and GPT-6.1 Sol, 5-minute cache writes. These are NagaAI's own prices, below the labs' list prices.
  • Reasoning: toggleable with low, medium and high, default medium.

Checked live on 2026-11-23 (08:46–08:52 UTC) with the request Crush sends: POST /v1/responses with store: false, reasoning.effort: medium, max_output_tokens set to the model's default_max_tokens, one function tool, and for GPT-6.1 Sol reasoning.summary: auto with include: ["reasoning.encrypted_content"]. Each model, streamed and not, called the tool, got the result back with the full history and finished its answer: 12 of 12 requests returned 200.

  • On main (ff9d094): go test ./... passes
  • gofumpt -l . (v0.10.0) and go run ./cmd/format leave no diff
  • golangci-lint run ./... (v2.13.1) 0 issues

Prices follow the market, so I'll keep this file current with follow-up PRs. If you'd rather have a cmd/nagaai generator reading /v1/models, I can add one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant