vllm-project/agentic-api
A Rust gateway that adds conversation state and tool execution to model servers
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Agentic API is a Rust gateway, not a model server. The Axum-based agentic-server crate handles HTTP, SSE, and WebSocket transports, configuration, and the agentic CLI. agentic-server-core owns protocol types, the executor, the tool framework, and persistence. For a stored Responses continuation, the gateway rehydrates history from previous_response_id, sends inference to the upstream, and continues the loop when a tool is assigned to the gateway. SQLite is the default; PostgreSQL is configurable for shared session state.
The tool contract separates gateway-owned execution from client callbacks and provider pass-through. Unknown or ambiguous calls are returned rather than executed by default. Messages supports remote HTTPS MCP through the mcp-client-2025-11-20 connector shape; when a turn mixes client and MCP calls, the gateway waits for matching client results before executing the MCP calls. The workspace also separates the llm-d split-execution state backend and the Praxis integration into dedicated crates. The Python packaging uses Maturin to distribute the Rust binary and launcher; it does not replace the gateway with a Python service.
Key Capabilities & Differentiators
OpenAI-compatible Responses and Conversations coexist with Anthropic Messages and token counting. Responses supports non-streaming HTTP, SSE, multiplexed WebSocket streams, background response polling and cancellation, and /v1/responses/compact. A Responses request can start a root agent and subagents with separate histories and tools. A stored tree can be continued by ID; with store: false, callers must send the complete item history. Chat Completions, Completions, embeddings, and audio routes are forwarded rather than wrapped in the stateful executor.
The gateway runs web search and fetch, MCP, and file_search; the embedded code interpreter is an opt-in build feature. File search combines the Files and vector-store APIs with sqlite-vec retrieval and retains citations across JSON responses, streaming, persistence, and continuation. The quickstart pairs Qwen/Qwen3-30B-A3B-FP8 with vLLM’s qwen3_coder tool-call parser and qwen3 reasoning parser. SGLang and NVIDIA Dynamo are also supported upstream paths. Open Responses conformance testing and replay cassettes provide protocol coverage, but do not establish feature parity across all models or clients.
Trade-offs & Limitations
Compared with calling vLLM directly, the gateway removes application-side work for chaining response IDs, running server-owned tools, and serving Codex and Claude Code through their respective protocols. It also adds a network hop, a state store, and tool dependencies to operate. If an application already owns its tool loop or only needs a pass-through endpoint, direct inference is simpler. Compared with consuming a hosted agent API, this design gives operators control over where inference and state run, but makes them responsible for model compatibility, storage lifecycle, network policy, and observability.
Validate tool parsing, streaming events, and client-specific behavior against the exact model and upstream you intend to run. The v0.10.0 durable Messages threads are opt-in; do not equate them with Responses continuation or assume the broader Messages roadmap is complete. Tenant-scoped state is still listed as production-hardening work, so treat tenant isolation as a rollout requirement, not an established guarantee. Keep remote tools and the opt-in interpreter behind deliberate access and egress controls. Apache-2.0 applies to the gateway; model weights and external services have separate terms.
Hardware & Deployment Guide
For an existing inference server, start the gateway with agentic serve --upstream ..., or start agentic-server from Cargo with --llm-api-base. The Maturin distribution requires Python 3.10+ and provides wheels for Linux x86_64 with glibc 2.17+, Intel macOS, and Apple Silicon. The base package does not install vLLM; the Linux local extra pins vllm==0.11.0. The multi-stage Dockerfile uses cargo-chef for the Rust build, and Kubernetes deployment is covered separately. Use SQLite for a standalone setup or configure PostgreSQL when instances need shared session state. The first run generates ~/.agentic-api/config.toml; CLI flags and environment variables override it.
A local gateway can use local inference, but web search, fetch, remote MCP, and telemetry export need network access when configured to reach external services. Size inference for the model, context, and concurrency, and size the gateway separately for open streams, tool calls, and storage I/O. Release v0.8.0 added opt-in OpenTelemetry tracing and HTTP metrics with OTLP export. v0.10.0 expanded the operational surface with Files and vector stores, asynchronous client tools, WebSocket multi-agent steering, and opt-in durable Messages threads.
previous_response_id; use default SQLite or configure PostgreSQL for shared session state.stream_id multiplexes WebSocket streams, and background responses can be polled or cancelled.file_search citations across streaming and continuation./health and /ready expose probes; opt-in OpenTelemetry exports traces and HTTP metrics over OTLP HTTP/protobuf.Teams with a compatible inference server that need shared Responses state, gateway-run tools, or a self-hosted endpoint for Codex and Claude Code.
You only need stateless inference, already own the tool loop, or require turnkey tenant isolation and fully mature durable workflows.
Quick Start & Installation
curl http://localhost:9000/v1/responses \ -H "Content-Type: application/json" \ -d '{ "model": "Qwen/Qwen3-30B-A3B-FP8", "input": "What is new in vLLM this month?", "tools": [{"type": "web_search"}] }'
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agentic-api ★ | 367 | +7 | Rust | Apache-2.0 | A Rust gateway that adds conversation state and tool execution to model servers |
| cua | 34.2k | +1k | Rust | MIT | Rust-backed sandboxes and cross-OS desktop controls for computer-use agents |
| multica | 59.2k | +967 | Go | — | A shared task board that dispatches coding agents to machines you control. |
| OpenHands | 94.8k | +374 | TypeScript | MIT | Self-hosted control plane for coding agents across local, remote, and cloud back |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/vllm-project/agentic-api.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agentic-api
How do Codex and Claude Code connect, and where do their tools run?
/v1 base URL and use the Responses wire protocol; enable WebSocket support if the client will use it. Point Claude Code at the gateway’s base URL and set its model to one served by the upstream. The gateway handles the protocol and server-owned tools, but Claude Code’s own tools still execute on the client. Test the selected model and tool-call parser with the actual client before rollout.What hardware and VRAM should I budget for?
Can I self-host it commercially, and does that keep all data on premises?
When is this preferable to connecting directly to vLLM or a hosted API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy