# AutoJev > One local model gateway for AI agents: smart routing, protocol conversion, failover and usage tracking for Codex, Claude Code and more. ## AutoJev - [AutoJev](https://autojev.ai/): Free, open-source desktop app that runs one local model gateway (127.0.0.1:9527) for AI agents — smart routing, protocol conversion, failover, speed tests, logs and usage - [Download](https://autojev.ai/download): macOS, Windows and Linux builds - [Documentation](https://autojev.ai/docs): Install, providers, routes, agent setup, gateway endpoints, privacy - [Pricing](https://autojev.ai/pricing): Free and open source under the MIT license; bring your own keys, no markup - [Agent config generator](https://autojev.ai/tools/agent-config-generator): Generate the config snippet to point a coding agent at any OpenAI/Anthropic-compatible endpoint - [LLM cost calculator](https://autojev.ai/tools/llm-cost-calculator): Estimate monthly model spend for an agent workload ## Features - [Smart model routing](https://autojev.ai/features/smart-routing): Expose routes like autojev/fast to every agent. Load-balance models or let Jev pick by cost, quality, speed or balance. - [One-click agent setup](https://autojev.ai/features/one-click-agent-setup): Connect Codex, Claude Code, Gemini CLI, OpenCode and more. AutoJev edits each native config, backs it up and restores it. - [Protocol conversion](https://autojev.ai/features/protocol-conversion): Convert between Chat Completions, Responses and Anthropic Messages in all six directions, with streaming and tool calls. - [Model speed tests](https://autojev.ai/features/model-speed-tests): Measure first-content latency and output tokens per second on your own network, on a schedule, and route by the results. - [Failover & load balancing](https://autojev.ai/features/failover-load-balancing): Weighted pools, priority groups and sticky sessions, with automatic failover on 429s and 5xx errors and Retry-After cooldowns. - [Usage & request logs](https://autojev.ai/features/usage-logs): Tokens, latency and estimated cost for every request, broken down by agent, model and provider. Metadata only, stored locally. - [Debug console](https://autojev.ai/features/debug-console): Test models and routes in conversation or cURL mode and inspect the selected model, timing, tokens, cost and raw JSON. - [Provider management](https://autojev.ai/features/provider-management): Add OpenAI, DeepSeek, OpenRouter, Ollama or any compatible endpoint once, or import from CC Switch and Termany. ## Integrations - [Codex](https://autojev.ai/integrations/codex): Run Codex on DeepSeek, OpenRouter, Ollama or any model. AutoJev speaks Responses to Codex and converts for Chat-only providers. - [Claude Code](https://autojev.ai/integrations/claude-code): Point Claude Code at AutoJev via ANTHROPIC_BASE_URL and use DeepSeek, GPT, Kimi or local models through the Messages API. - [Gemini CLI](https://autojev.ai/integrations/gemini-cli): Use a custom model in Gemini CLI. AutoJev bridges Gemini API requests to Chat Completions and on to any provider. - [OpenCode](https://autojev.ai/integrations/opencode): Add AutoJev as an OpenCode provider in one click: every selected model and route appears under the autojev provider. - [Hermes](https://autojev.ai/integrations/hermes): Connect Hermes to AutoJev over Chat Completions and route it to any provider, route or local model from one place. - [OpenClaw](https://autojev.ai/integrations/openclaw): AutoJev registers itself as an OpenClaw model provider and sets the primary model, so OpenClaw can use any model you route. - [Kimi Code CLI](https://autojev.ai/integrations/kimi-code): Use other models in Kimi Code CLI. AutoJev adds an autojev provider and model entries to your Kimi config.toml. - [Grok Build](https://autojev.ai/integrations/grok-build): Give Grok Build a custom model: AutoJev writes model entries to ~/.grok/config.toml and routes them to any provider. - [oh-my-pi (OMP)](https://autojev.ai/integrations/oh-my-pi): Connect OMP to AutoJev: a provider in models.yml plus the default model role in config.yml, restored together. - [Custom agents & BYOK clients](https://autojev.ai/integrations/custom-agents): Add any local agent executable, use templates for Kilo and more, or copy env, JSON and cURL connection parameters. - [OpenAI](https://autojev.ai/integrations/openai): Add your OpenAI key once and use its models in every agent, with Responses or Chat Completions set per model. - [DeepSeek](https://autojev.ai/integrations/deepseek): Run DeepSeek in Codex and Claude Code. AutoJev converts Responses and Messages to Chat Completions on localhost. - [OpenRouter](https://autojev.ai/integrations/openrouter): Bring OpenRouter models to every agent. The same key can power Jev, the decision model for intelligent routing. - [Ollama](https://autojev.ai/integrations/ollama): Use local Ollama models in any coding agent, prefer them in routing, and fail over to cloud models when needed. - [OpenAI-compatible APIs](https://autojev.ai/integrations/openai-compatible): Kimi, Qwen, SiliconFlow, MiniMax, vLLM, LM Studio — any OpenAI-compatible endpoint, available to all your agents. - [Anthropic-compatible APIs](https://autojev.ai/integrations/anthropic-compatible): Add any Anthropic Messages endpoint. Claude Code gets native passthrough; Codex and others get automatic conversion. ## Use cases - [For multi-agent developers](https://autojev.ai/use-cases/for-ai-coding-agents): Codex, Claude Code, Gemini CLI, OpenCode and more on one local gateway, with per-agent models and one request log. - [For local-first developers](https://autojev.ai/use-cases/for-local-models): Prefer Ollama models, fail over to the cloud when needed. Localhost gateway, metadata-only logs, no account. - [For cutting agent costs](https://autojev.ai/use-cases/for-cost-control): Route routine turns to cheaper models, set a cost baseline, and see estimated spend by agent and model. No markup. - [For evaluating models](https://autojev.ai/use-cases/for-model-evaluation): Measured latency and tokens/s, a debug console for identical prompts, and per-model stats from real agent traffic. ## Comparisons - [AutoJev vs CC Switch](https://autojev.ai/compare/autojev-vs-cc-switch): Per-request model routing and speed tests versus one-click provider switching with MCP, Skills and prompt management. - [AutoJev vs Claude Code Router](https://autojev.ai/compare/autojev-vs-claude-code-router): Two local gateways for coding agents: strategy-based routing with speed tests versus rule-based routing with a tool layer. - [AutoJev vs LiteLLM](https://autojev.ai/compare/autojev-vs-litellm): A desktop router for your own agents versus a self-hosted team gateway with virtual keys and budgets. They can work together. - [AutoJev vs OpenRouter](https://autojev.ai/compare/autojev-vs-openrouter): A local router across all your providers versus a hosted API with hundreds of models. AutoJev uses OpenRouter as a provider. - [CC Switch alternative](https://autojev.ai/compare/cc-switch-alternative): Import your CC Switch providers and route each agent request across models by speed, cost and quality. - [Claude Code Router alternative](https://autojev.ai/compare/claude-code-router-alternative): Connect Claude Code to DeepSeek, OpenAI, OpenRouter or local models in one click, with load balancing and failover. ## Jev guides - [Ask Jev](https://autojev.ai/ask): Ask a bounded question and receive yes, no, depends, or unclear with calibrated confidence - [TypeSafe Jev Guide](https://autojev.ai/typesafe-jev): TypeSafe Jev model, Choice, Score and Noul decisions, official access, integrations, limitations, and use cases - [Jev AI for Agents](https://autojev.ai/jev-ai): Hosted Jev AI decisions for agents: Jev MCP server, decision API, Jev Skills, playground, and a guide to typed routing, classification, and guardrails - [Jev Model Guide](https://autojev.ai/jev-model): Jev model inputs, Choice, Noul, Score outputs, limitations, and integration patterns - [Jev API Guide](https://autojev.ai/jev-api): Call the Jev Decisions API with Choice, Noul, Score, Bearer authentication, and typed responses - [Jev Ecosystem Guide](https://autojev.ai/jev-ecosystem): OpenJev, NanoJev, jev-router, Awesome Jev directories, official resources, and community projects - [Jev MCP Server](https://autojev.ai/jev-mcp): Connect AI agents to six Jev decision tools over MCP - [Jev Skills for AI Agents](https://autojev.ai/jev-skills): Install all six portable Jev Skills for routing, tool safety, research, and completion checks - [Jev Use Cases](https://autojev.ai/jev-use-cases): Practical decision boundaries for model routing, task routing, guardrails, research, and completion - [Jev Model Routing](https://autojev.ai/use-cases/model-routing): Choose among approved AI models using task requirements - [Jev Tool-Call Guardrails](https://autojev.ai/use-cases/tool-call-guardrails): Review consequential agent actions before execution - [Jev Task Routing](https://autojev.ai/use-cases/task-routing): Choose the next bounded path in an AI agent workflow - [Jev Research Verification](https://autojev.ai/use-cases/research-verification): Check whether supplied evidence supports a bounded claim - [Jev Completion Review](https://autojev.ai/use-cases/completion-review): Verify task evidence before an AI agent reports success - [Jev Computer Use](https://autojev.ai/use-cases/computer-use): Browser and desktop agents that choose bounded operations and grounded interface targets with Jev - [Jev Games](https://autojev.ai/use-cases/games): Decision-model patterns and public examples for game agents, legal moves, controllers, and evaluation - [AutoJev Playground](https://autojev.ai/playground): Debug Jev model routing and agent decision presets online - [Hosted Jev API docs](https://autojev.ai/jev-api-docs): REST, MCP, Skills, local development, and production setup for the hosted Jev API ## Blog Posts - [Why Your AI Agents Need a Local LLM Gateway](https://autojev.ai/blog/local-llm-gateway-for-ai-agents): Running Codex, Claude Code and Gemini CLI side by side? A local LLM gateway gives every agent one endpoint with model routing, failover, protocol conversion, observability and privacy. Here is how it works and how to set one up. - [Run Codex CLI with Any Model: OpenRouter, DeepSeek, Ollama](https://autojev.ai/blog/codex-with-any-model): Codex speaks the OpenAI Responses API. Learn how to run it on OpenRouter, DeepSeek, Ollama or any OpenAI-compatible model with a local gateway that converts Responses to Chat Completions, and what gets written to ~/.codex/config.toml. - [How to Use DeepSeek (or Any Model) in Claude Code](https://autojev.ai/blog/use-deepseek-in-claude-code): Run Claude Code on DeepSeek, OpenRouter, Ollama or any OpenAI-compatible model through a local gateway. One-click setup, the exact settings.json changes, protocol conversion and routing explained. - [What Is Jev? TypeSafe AI's Decision Model Explained](https://autojev.ai/blog/what-is-jev): Learn how TypeSafe AI's Jev model returns typed choices, probabilities and scores through the Jev API, and where it fits in AI agent workflows.