Skip to content
rawroute

Use rawroute with AnythingLLM. Lower input & cached RAG costs on every workspace.

RAG workspaces in AnythingLLM send large document chunks on every query, making input token pricing the dominant bill driver. Routing AnythingLLM's Generic OpenAI provider through https://api.rawroute.dev/v1 cuts input costs 50–70% below list and passes vendor prompt-caching discounts straight through.

Quick setup for AnythingLLM

  1. Open Settings → AI Providers → LLM → Generic OpenAI.
  2. Set Base URL to https://api.rawroute.dev/v1 and paste your rawroute API key.
  3. Set Chat Model Name to gpt-6.2-sol, gemini-4-argon, or claude-sonnet-5-5.
LLM_PROVIDER=generic-openai
GENERIC_OPEN_AI_BASE_PATH=https://api.rawroute.dev/v1
GENERIC_OPEN_AI_API_KEY=rr_live_your_key_here
GENERIC_OPEN_AI_MODEL_PREF=claude-sonnet-5-5
GENERIC_OPEN_AI_MAX_TOKENS=4096

Recommended models for AnythingLLM

ModelModel IDOfficialOpenRouter +5.5%rawroute (0%)Providers
GPT-6.2 Solgpt-6.2-sol$2.00 / $10.00$2.11 / $10.55$0.60 / $3.003
Gemini 4 Argongemini-4-argon$2.00 / $10.00$2.11 / $10.55$1.00 / $5.004
Claude Sonnet 5.5claude-sonnet-5-5$2.00 / $10.00$2.11 / $10.55$1.00 / $5.004
Claude Haiku 5.5claude-haiku-5-5$0.10 / $0.50$0.11 / $0.53$0.05 / $0.253

When NOT to use rawroute

FAQ

Which model gives the best RAG value in AnythingLLM?

GPT-6.2 Sol ($0.60 / $3.00) and Gemini 4 Argon ($1.00 / $5.00) combine long context with 50–70% savings below official list rates.