Skip to content
Documentation menu

Documentation

local is a market for API usage with an in-house catalog as fallback. You sign in with a Solana wallet, fund a USD balance with USDC, create scoped API keys, and call native routes (Solana RPC, chat completions, messages) or catalog tools through https://api.uselocal.sh/v1. Workspaces with paid plans sell the capacity they do not use.

API reference

Route groups, with the Zod schemas living in @local/contracts:

  • Public — GET /v1/catalog*, GET /v1/tools/{provider}/{slug}, POST /v1/quotes, POST /v1/tools/{provider}/{slug}/execute, GET /v1/jobs*, GET /v1/balance, GET /v1/usage, GET /v1/requests/{id}, keys, deposits, webhooks, GET /v1/me.
  • Native routes (market-routed) — POST /v1/rpc/solana, POST /v1/chat/completions, POST /v1/messages, ANY /v1/market/{provider}/{path…}. See Market routing.
  • Market, public — GET /v1/market, GET /v1/market/{provider}, GET /v1/market/{provider}/prices.
  • Market, sellers (session, or key scope market:sell) — /dashboard/market/providers, /dashboard/market/credentials (+ /{id}/verify), /dashboard/market/offers (+ pause/resume), /dashboard/market/fills, /dashboard/market/earnings (+ transfer), /dashboard/market/payouts; /v1/market/offers* for agents. See Selling capacity.
  • Routing policy — GET/PATCH /dashboard/routing and routing on PATCH /dashboard/keys/{id}.
  • Dashboard (session) — auth, overview, catalog, playground quotes/execute, keys, projects, usage, requests, jobs, funding, settings, members, webhooks, status.
  • Admin — catalog review, pricing, suppliers, reconciliation, deposits, refunds, incidents, audit, and market (/admin/market/overview, /admin/market/providers, /admin/market/offers, /admin/market/payouts).

Reference