🤖 AgentOS — The Operating System for AI Workers
Build, deploy, and manage AI agents with 5 lines of code.
AgentOS is an open-source framework that makes it dead simple to create AI agents that can use tools, remember context, and work together in swarms. Think of it as the operating system for your AI workforce.
from agentos import Agent, tool
@tool
def search_web(query: str) -> str:
"""Search the web."""
return f"Results for: {query}"
agent = Agent(
name="Researcher",
instructions="You are a helpful research assistant.",
tools=[search_web],
)
result = agent.run("What's the latest in AI?")
print(result)
✨ Why AgentOS?
| Feature | AgentOS | LangChain | CrewAI |
|---|---|---|---|
| Lines of code for a simple agent | 5 | 30+ | 20+ |
| Built-in tools | ✅ 7 tools | ❌ | ✅ |
| Multi-agent swarms | ✅ Sequential + Parallel | ❌ | ✅ |
| Memory management | ✅ Built-in | Manual | ✅ |
| API server | ✅ FastAPI | ❌ | ❌ |
| CLI | ✅ | ❌ | ❌ |
| Open source | ✅ Apache 2.0 | ✅ MIT | ✅ MIT |
🚀 Quick Start
Installation
pip install agentos
Set your API key:
export OPENAI_API_KEY="sk-..."
Your First Agent
from agentos import Agent
agent = Agent(
name="Helper",
instructions="You are a helpful assistant. Be concise.",
)
result = agent.run("Explain AI agents in one sentence.")
print(result)
Agent with Tools
from agentos import Agent, tool
@tool
def get_weather(city: str) -> str:
"""Get current weather for a city."""
return f"Sunny, 72°F in {city}"
agent = Agent(
name="WeatherBot",
instructions="You help people check the weather.",
tools=[get_weather],
)
result = agent.run("What's the weather in Tokyo?")
Multi-Agent Swarm
from agentos import Agent, Swarm
researcher = Agent(name="Researcher", instructions="Research topics thoroughly.",
tools=[web_search])
writer = Agent(name="Writer", instructions="Write clear reports.")
swarm = Swarm(agents=[researcher, writer])
outputs = swarm.run_sequential([
("Researcher", "Research AI trends in 2026"),
("Writer", "Write a report based on: {Researcher_output}"),
])
CLI
# Run a one-shot task
agentos run "What is 2+2?"
# Start interactive chat
agentos chat
# Run a multi-agent swarm
agentos swarm "Research and write a report" -c swarm_config.json
# Start the API server
agentos serve
API Server
agentos serve -p 8520
Then call the API:
curl -X POST http://localhost:8520/api/agents/run \
-H "Content-Type: application/json" \
-d '{"task": "Explain quantum computing in 2 sentences"}'
🛠️ Built-in Tools
AgentOS comes with 7 production-ready tools:
| Tool | Description |
|---|---|
read_file |
Read file contents |
write_file |
Write content to files |
list_directory |
List directory contents |
run_shell |
Execute shell commands |
web_fetch |
Fetch web page content |
calculate |
Evaluate math expressions |
current_time |
Get current date/time |
🏗️ Architecture
┌─────────────────────────────────────┐
│ AgentOS Platform │
├─────────────────────────────────────┤
│ CLI │ Python SDK │ REST API │
├─────────────────────────────────────┤
│ Core Engine │
│ ┌─────────┐ ┌──────────────────┐ │
│ │ Agent │ │ Orchestrator │ │
│ │ (LLM) │ │ (Swarm) │ │
│ └─────────┘ └──────────────────┘ │
│ ┌─────────┐ ┌──────────────────┐ │
│ │ Tools │ │ Memory │ │
│ └─────────┘ └──────────────────┘ │
├─────────────────────────────────────┤
│ OpenAI │ Anthropic │ Local Models │
└─────────────────────────────────────┘
🗺️ Roadmap
- Core Agent engine with tool calling
- Multi-agent orchestration (Swarm)
- CLI + REST API server
- Built-in tools library
- Web Dashboard (agent monitoring)
- Memory persistence (SQLite/Postgres)
- Streaming responses
- Anthropic Claude support
- Local model support (Ollama)
- Agent marketplace
- Enterprise SSO & RBAC
🤝 Contributing
AgentOS is Apache 2.0 licensed. We welcome contributions!
git clone https://github.com/agentos-ai/agentos.git
cd agentos
pip install -e ".[dev]"
pytest
📄 License
Apache 2.0 — free for personal, academic, and commercial use.
Built with ❤️ by the AgentOS team. The OS for your AI workforce.
Metadata
Release files for pyagentos 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyagentos-0.1.0.tar.gz | 18.9 kB | Without provenance | Details for pyagentos-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyagentos-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyagentos-0.1.0-py3-none-any.whl |
Total release size: 37.9 kB
Release files / pyagentos-0.1.0.tar.gz
| Download URL | pyagentos-0.1.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76f3e81b3d5b81bf209fb9b2643754b17208e2ee4d7dc5ebacfc64ab6a694832
|
|
BLAKE2b-256 checksum How to use checksums |
696ff1d6156a359cd57f856a571846903fdc44554e5dab4de8fa87b5b225c525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / pyagentos-0.1.0-py3-none-any.whl
| Download URL | pyagentos-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbe0560dbd85927b96eaec7279634d4bc40d0eb39c75c67ed7b0849cb15b547f
|
|
BLAKE2b-256 checksum How to use checksums |
92ef0797c4e35417eb7c04013dbb32190814ac181e0a0bc1bbae19321f40787b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for pyagentos 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.