Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
-- CLI access tokens — scoped credentials for remote-mode management commands.
-- Distinct from `api_keys` (inference traffic): these authorize the `omniroute`
-- CLI / dashboard to run management operations against a (possibly remote) server.
-- Only the SHA-256 hash of the secret is stored; the plaintext is shown once at
-- creation. Scope is one of: 'read' | 'write' | 'admin' (admin ⊃ write ⊃ read).
CREATE TABLE IF NOT EXISTS cli_access_tokens (
id TEXT PRIMARY KEY,
token_hash TEXT NOT NULL UNIQUE,
token_prefix TEXT NOT NULL,
name TEXT NOT NULL,
scope TEXT NOT NULL DEFAULT 'read',
created_at TEXT NOT NULL DEFAULT (datetime('now')),
last_used_at TEXT,
expires_at TEXT,
revoked_at TEXT
);
CREATE INDEX IF NOT EXISTS idx_cli_access_tokens_hash ON cli_access_tokens(token_hash);