Repository navigation
Releases
v0.2.1
Smoother first run. A new user can go from one command to a real model answering in a few clicks: oasis-route dev --open signs you in, connects local models, and the new Get started page lists free no-card keys, takes them in one paste box, and sends a test message. model=auto no longer answers with the demo echo once something real is connected. Fixes about 15 rough edges found by using 0.2.0 as a new user. No schema change.
Fixed
- Console: the paste-keys box was a narrow textarea with the confirmations squeezed beside it; it is now full width with one checkbox per line. Connect one provider defaulted to a blocked provider (
adapta-web) and listed all 231; it now lists only connectable providers, reviewed adapters first, behind a "Choose a provider" placeholder. Discover rendered every provider card (about 27,000 px of mostly unavailable entries); it shows connected and connectable providers first with Show all for the rest. - Discover asked to "confirm the account is free-tier" for Ollama and other local servers, which have no account or bill; local connections now simply show Connected. Paid connections are shown as connected paid accounts rather than as needing confirmation.
oasis-route devhung with a traceback when its ports were already taken (for example a seconddevin another shell); it now exits with a one-line message naming the ports.- In Docker,
oasis-route devprintedhttp://0.0.0.0:8080/...links, which some browsers cannot open; it now prints127.0.0.1. oasis-route routesprinted raw Python dictionaries in its summary line.- Detected local servers were named twice, e.g. "Ollama (local) (detected)".
oasis-route connectwith no flags now asks you to paste keys (hidden), shows what it detected, and asks the two confirmations (your own accounts and terms; whether billing is set up) instead of stopping with "no keys found" or a silent dry run. Like other commands, it now uses the dev key in.oasis-dev/admin.keywhenOASIS_API_KEYis unset. Scripts keep--from-env/--env-file/--stdinwith--accept-terms.oasis-route setupprinted raw Python dictionaries for route counts and gave no next step on a fresh install; it now prints readable counts, the free-key links, a warning when only demo providers answer, and the one-line fix for accounts with unknown billing.oasis-route providerslabelled the hand-written adapters (Groq, Cerebras, Gemini, OpenRouter, Mistral, NVIDIA, OpenAI, Anthropic, Cohere, Hugging Face, SambaNova, Z.ai) as importedomniroute/advertisedbecause an imported row shares their id; they now showcurated/reviewed. Their free-tier column is still marked advertised.oasis-route doctorwarns when only demo providers are connected, and its "no free routes" failure points tooasis-route setup.model=autokept answering with the built-in demo echo (mock,mock_alt) after a real provider or local model was connected. Demo providers now step aside forautoas soon as any real connection is active (gatedemo_provider_superseded); pinning a demo model still works.- Route summaries counted demo routes as ready free capacity.
eligible_freenow counts real models only, and demo routes are reported separately aseligible_demo; routes carry ademoflag.
Added
- Console Get started page, now the first screen: whether real models or only the demo are connected, a Send test message button showing who answered, free no-card key links, the paste-keys box, detected local models with a connect button, a one-click fix for accounts with unknown billing, and the endpoint.
- One-click console sign-in:
oasis-route devprints/console/#key=<key>; the console moves the key into session storage and strips it from the address bar.oasis-route dev --openopens it in the browser. oasis-route devconnects running local model servers (Ollama, LM Studio, vLLM, ...) on start, soautoanswers with a real model without a separatesetupstep (--no-localto skip).GET /api/v1/projects/{id}/setupnow returnsfree_keys(where to create a no-card key for each reviewed hosted provider, with its environment variable and free-tier note) andbilling_attention(connections whose routes are held back only because nobody declared whether billing is set up). A fresh install no longer ends at "none reviewed yet".oasis-route billing <provider> free_tier|paid|unknowndeclares whether billing is set up on a connected account, so free-plan keys connected without--free-tiercan be fixed in one command.- 0.2.0 release announcement (docs/releases/v0.2.0.md), a documentation home page (docs/README.md) with a release index, and a release banner in the README. The README test count now reads 409 (415 in 0.2.1).
v0.2.0
Unified gateway release: an advertised catalogue of about 220 providers and 2,000 models (always labelled unverified until checked), protocol adapters, turnkey onboarding, routing strategies with explanations, spend modes with explicit paid approval, a USD budget ledger with receipts, client integration recipes, and an operator CLI and console. Nothing paid is ever enabled or used silently.
Fixed
- Routing on PostgreSQL broke ties between equally ranked connections by undefined row order, so failover could try candidates in a different order each run; ties now resolve by connection creation time and id.
- CI: the commit-attribution scripts under
scripts/now passruff checkandruff format --check, andscripts/upgrade_check.shdefaults to a base commit that exists onmain. - CLI commands that talk to a server (
setup,integrate --check) crashed with "Cannot open a client instance more than once" against a live server. - docs/INTEGRATIONS.md told users to
cat .oasis-dev/admin.keyintoOASIS_API_KEY, which includes the project id line and breaks every client; it now reads line 2. The CLI also accepts the whole file and falls back to it when no key is set. - An unreachable server or rejected key now produces a one-line explanation instead of a traceback.
- Console navigation no longer hides Offers, Notices and Background off-screen on screens narrower than about 1440px.
Added
- Operator CLI (docs/CLI.md):
oasis-route providers,models,routes,quota,verify,preview,decisions,explain <request-id>anddoctor, each with--json. Imported catalogue providers, models and prices are always labelled advertised/unconfirmed/unverified./api/v1/providersand/api/v1/modelsnow includecatalogprovenance, and models includepricingwith itsverifiedflag. - Console: new Routes, Spend (budgets and receipts) and Integrations views; Capacity shows active cooldowns and budgets; Usage and Spend have an Explain panel for any past request; Route preview offers every routing strategy and shows the full explanation and per-candidate cost.
- Client integrations (docs/INTEGRATIONS.md):
oasis-route integrate [tool] [--check]andGET /api/v1/integrations[/{tool}]print paste-ready settings for Claude Code, Codex CLI, Cursor, Cline, Roo Code, Aider, OpenCode, Continue and the OpenAI/Anthropic SDKs (no secrets;$OASIS_API_KEY).--checktests model listing and one request through the tool's protocol. Streaming first chunks now carryoasis_route.request_id,fallbackandspend; Anthropic-shaped errors carryoasis_routeroute metadata like OpenAI-shaped ones. - USD budget ledger (docs/ROUTING_AND_QUOTAS.md): per-project
day,monthandtotalcaps (/api/v1/projects/{id}/budgets). Each request holds its worst-case cost atomically with its quota reservation (also against provider credit pools, which previously could not be reserved), dispatches only if the hold succeeds, settles to the actual cost exactly once with drift, and writes a receipt with a SHA-256 digest (/api/v1/projects/{id}/receipts). Unknown-cost routes never run under a budget. Budgets report burn rate, projected window spend and exhaustion time. Tablesspend_budgetsandrequest_receipts, migration 0012. - Spend modes (docs/ROUTING_AND_QUOTAS.md):
zero_budget(alias offree_only), newbounded_autonomy, andcontinuity(alias ofallow_paid). Bounded autonomy answers402 paid_approval_requiredwith priced, single-use approval tokens (hashed, atomically consumed, audited; tablepaid_approvals, migration 0011) instead of using a paid route;oasis_route.approve_paidadmits exactly the approved route once. Free routes always rank before paid ones outside zero-budget. Responses carryoasis_route.spend(aPAID FALLBACKlabel with cost estimate, authorisation and reason),oasis_route.cooldownswith retry/reset times after a 429, andx-oasis-route-spend-mode/x-oasis-route-paidheaders. Unknown stored spend policies fail closed tofree_only. - Routing strategies
lowest_cost,most_quota,lowest_latency,reliability,context_fit,reset_awareanddiversity, applied only after every policy gate (see docs/ROUTING_AND_QUOTAS.md). Each candidate carries an estimated worst-case cost. Route previews and decisions now include an explanation (selected route and reason, alternatives, rejections by gate, verification, quota, estimated and actual cost, fallback chain), stored in the newroute_decisions.explanationcolumn (migration 0010) and returned byGET /api/v1/projects/{id}/route-decisions/{request_id}; responses carry a compactoasis_route.routesummary. - Turnkey onboarding (docs/ONBOARDING.md):
oasis-route setupandGET/POST /api/v1/projects/{id}/setupdetect local servers on their default ports (only when private upstreams are allowed), connect them as last-resort routes, list verified free providers separately from advertised ones, and return the single OpenAI-compatible endpoint.GET /api/v1/projects/{id}/routesclassifies every route as free/paid/unknown and eligible/blocked/exhausted with the reason. Setup never changes the spend policy or billing modes.<PROVIDER>_API_KEYis recognised for every connectable imported provider. - Adapter layer: providers resolve to a curated profile, a local-server preset, or a profile generated from the imported catalogue (auth header and prefix, extra headers, model-list URL), so adding one never touches the router. Anthropic-compatible APIs can use bearer or named-header auth. New local presets
ollama,llama_cpp,vllm,lm_studio,lemonade,llamafile,docker_model_runner,xinference(no key; refused unless the base URL resolves to a private or loopback address).routing/cost.pyestimates cost as free, priced (verified or estimate) or unknown in integer USD micros. See docs/PROVIDER_ADAPTERS.md. - Unified catalogue (docs/CATALOG.md): about 220 providers and 2,000 models imported from the OmniRoute catalogue (MIT) with provenance (commit, source URL, curation date, review state). Imported models use the new
lifecycle: "catalog"and stay non-routable (catalog_model_unconfirmed) until the provider's own model list confirms them; imported free tiers becomediscoveredoffers with evidence and never setpricing.free; imported prices areverified: falseestimates; blocked and unsupported providers are listed with the reason. NewcatalogJSON column on providers and models (migration 0009) and settingOASIS_ROUTE_CATALOG_IMPORT_ENABLED. - OmniRoute alignment report (docs/OMNIROUTE_ALIGNMENT.md): request lifecycle map, existing building blocks, and what OASIS Route adopts, adapts and rejects from OmniRoute's catalogue, adapters, routing and fallback.
- Whole-ecosystem free-capacity total:
scripts/ecosystem_capacity.pycounts every free tier listed by OASIS Route, the FreeLLMAPI catalog and OmniRoute, once per account with shared pools counted once. About 1.7B tokens a month for agent-sized requests (626M at chat size), 2.3B with OpenRouter's one-time unlock. A new README card and theTOTALbadge show it, next to FreeLLMAPI's 10.1B and OmniRoute's 1.62B claims. - Free-tier capacity re-checked on 2026-11-23: about 30M chat / 70M agent tokens a month with no purchase, about 650M agent tokens after a one-time 10 OpenRouter credits, and a 2.7B theoretical ceiling with NVIDIA's prototyping tier.
scripts/free_tier_capacity.pynow models request-per-month caps (Cohere) and Cloudflare neurons, prints four scenarios, and reflects SambaNova's reduced model list. See docs/FREE_TIER_CAPACITY.md. - Redesigned README with generated, theme-aware artwork (
scripts/readme_assets.pywritesassets/readme/*.svgand the social preview), a capacity chart and a comparison with OmniRoute and other gateways. - Community files: issue forms (bug, feature idea, provider or free-tier update), pull request template,
SUPPORT.md,CITATION.cffand Dependabot for uv, GitHub Actions and Docker. - Package metadata for discovery: PyPI keywords, classifiers and project URLs.
- Hugging Face device-code sign-in (RFC 8628) for servers without a browser:
"mode": "device", a short user code, andPOST .../oauth/{flow_id}/pollhonouringintervalandslow_down. oasis-route dev --connect-env [--free-tier --age N --country CC]connects the provider keys in your environment on every start and pauses the mock providers once a real one is active.- Paste-your-keys now lets you pick the provider for keys whose format several providers share (
providers_by_line, from the dry run'sline). - One-step onboarding. Connections → Paste your keys in the console,
POST /api/v1/projects/{id}/connections/quickandoasis-route connect --from-envconnect every key at once: each key's provider is recognised locally from its variable name or prefix (ambiguous keys are never tried against several providers), validated only with that provider, and its models and approved discovery sources refreshed. - Cohere (trial keys, OpenAI-compatible endpoint) and Z.ai (free GLM Flash models) providers, with key-only validation for providers that do not list models.
- Atom/RSS announcement and release feeds as discovery sources (DTDs refused).
- Sources record the extractor release that read them; after an upgrade each page is fetched unconditionally once and re-extracted (migration 0008).
Changed
- Position OASIS Route as the first-party, optional inference-routing companion to OASIS while preserving sta...