Introduction
Anvia is a TypeScript runtime and product suite for building, debugging, and operating AI agents inside your own application. You create the provider model and define the agent's behavior; Anvia runs the model and tool loop, while your application keeps authentication, data, persistence, and deployment.
ts
import { Agent } from '@anvia/core'
import { OpenAIClient } from '@anvia/openai'
const client = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! })
const model = client.completionModel({ modelId: 'gpt-5.6-sol', api: 'responses' })
const agent = new Agent({
id: 'support',
model,
instructions: 'Answer support questions clearly. Ask for missing details.',
})
const response = await agent.generate({ prompt: 'How do I reset my password?' })
if (response.type === 'response') console.log(response.output)Start here
- Add Anvia to your coding agent: Install Agent Skills for Claude Code, Cursor, or Codex.
- Quickstart: Install a provider, verify a completion, and run your first agent.
- What is an agent runtime?: See what Anvia owns and what stays in your application.
Products
| Product | What it does |
|---|---|
| Anvia SDK | Provider-neutral models, agents, tools, memory, retrieval, pipelines, durable execution, and streaming. |
| Channels | Connect agents to Discord, Slack, and Telegram, including proactive delivery. |
| Studio | A local browser runtime for running agents and inspecting sessions, traces, tools, and memory while you develop. |
| Lens | Production tracing, evaluations, datasets, alerts, and cost for the systems you ship. |
| CLI | Install coding-agent skills and editable React chat components. |
Features
- Agent Runtime: Reusable agents with bounded model and tool turns.
- Agent API and Interfaces: Serve agents over HTTP and render them in React.
- Tools and MCP: Typed application actions, tool search, and MCP servers.
- Knowledge and RAG: Embeddings, vector stores, and GraphRAG.
- Memory: Durable session history in your own database.
- Multi-agent Teams: Coordinate specialist agents.
- Durable Execution: Runs that survive restarts and resume after approvals.
- Security and Auth: Keep authorization, secrets, and limits on the server.
- Observability and Evaluations: Trace, score, and compare releases.
What's new
Anvia packages release independently. Read the changelog for recent additions, and Compatibility and versioning for supported versions and the v0 to v1 migration boundary.