# Repository Briefing: vllm-project/agentic-api
> Source: https://repoforai.com/repo/vllm-project/agentic-api (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vllm-project/agentic-api
- **Official Docs / Website**: https://vllm-project.github.io/agentic-api/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.10.0 (2026-11-09) — https://github.com/vllm-project/agentic-api/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, MCP, API
- **Momentum**: 367 ★ total (+1 24h / +7 7d) · 117 forks
- **When to Use**: Best for: Teams with a compatible inference server that need shared Responses state, gateway-run tools, or a self-hosted endpoint for Codex and Claude Code. Skip if: You only need stateless inference, already own the tool loop, or require turnkey tenant isolation and fully mature durable workflows.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- State: Resume stored Responses with `previous_response_id`; use default SQLite or configure PostgreSQL for shared session state.
- Transport: Responses supports HTTP, SSE, and WebSocket; `stream_id` multiplexes WebSocket streams, and background responses can be polled or cancelled.
- Tool ownership: The gateway executes its own tools, returns client tools to the caller, passes provider tools upstream, and does not execute ambiguous calls by default.
- Retrieval: v0.10.0 adds Files and vector-store APIs, sqlite-vec retrieval, pluggable repository and blob storage, and `file_search` citations across streaming and continuation.
- Orchestration: A root Responses agent can coordinate subagents with separate histories and tools; stored agent trees can be continued by response ID.
- Operations: `/health` and `/ready` expose probes; opt-in OpenTelemetry exports traces and HTTP metrics over OTLP HTTP/protobuf.
```

## Quick Start / Clone
```bash
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"}]
  }'
```
