Skip to content
AgentAgent framework

atomic-agents

Lightweight, schema-driven Python framework for building predictable LLM agents

atomic-agents is an open-source agent framework for ai models and llm tooling. It is available on API, CLI and Self-hosted.

Pricing
Open source
Platforms
API, CLI, Self-hosted
GitHub stars
6.4K
Last commit
Language
Python
License
MIT

Similar agents

About atomic-agents

Atomic Agents is a Python library for assembling LLM-powered pipelines out of small parts: an agent with a system prompt, typed input and output schemas, a chat history, and optional context providers that inject runtime data into the prompt. Because every boundary is defined with Pydantic models, components can be swapped or chained by matching their schemas rather than rewriting glue code.

Under the hood it sits on top of Instructor, which handles structured output across many model providers, so the same agent code can target OpenAI, Anthropic, Gemini, Groq or local Ollama models with a change of client. Observability is built in: each agent and tool run is emitted as an OpenTelemetry span that can be sent to any compatible backend.

The project suits Python developers who want explicit control over prompts and data flow instead of a fully autonomous multi-agent runtime. A separate CLI, Atomic Assembler, lets you pull individual tools from the Atomic Forge collection into your project without taking on unneeded dependencies.

What it does

Schema-typed agents
Agents are parameterised by Pydantic input and output schemas, so responses are validated against a defined structure.
Swappable components
Tools and agents share aligned schemas, letting you replace one search provider or model with another.
Dynamic context providers
Custom providers inject runtime data such as search results into the system prompt on each run.
Provider-agnostic models
Works with OpenAI, Anthropic, Gemini, Groq, Ollama and other Instructor-supported APIs.
OpenTelemetry tracing
Every agent and tool run emits a span that can be exported to Phoenix, Langfuse, Jaeger or similar backends.
Atomic Forge tool CLI
The atomic command downloads individual tools such as search, scraping and calculator modules into your project.

Good for

  • Build a chatbot with a fixed, validated reply format
  • Chain a search-query agent into interchangeable web search tools
  • Extract structured recipes or data from YouTube transcripts
  • Add retrieval-augmented context to an agent's system prompt
  • Trace and monitor agent runs in production with OpenTelemetry

Pricing

Open source

Free and MIT-licensed; optional sponsorship

Prices change. Check eigenwise.github.io before you buy.

atomic-agents FAQ

What license is Atomic Agents released under?

It is free and MIT-licensed.

Which LLM providers can atomic-agents use?

It works with OpenAI by default and, through Instructor, with providers such as Anthropic, Groq, Gemini, Ollama and OpenAI-compatible APIs like OpenRouter.

How do I install atomic-agents?

Install with pip install atomic-agents or uv add atomic-agents, then add the provider extra you need, such as instructor[anthropic].

Is there a hosted version?

No hosted product is described; it is a Python library you run in your own code.

Is atomic-agents free?

Yes. atomic-agents is open source, so you can use and self-host it for free.

What are the best alternatives to atomic-agents?

The closest alternatives to atomic-agents are pydantic-deepagents, AgentForge, llm_agents, agency-swarm and smolagents.

Where this comes from

  • Description: written from the project's README and the project's website.