Skip to main content

 ██╗    ██╗ █████╗ ██████╗ ██████╗  ██████╗ ███████╗
 ██║    ██║██╔══██╗██╔══██╗██╔══██╗██╔═══██╗██╔════╝
 ██║ █╗ ██║███████║██████╔╝██████╔╝██║   ██║███████╗
 ██║███╗██║██╔══██║██╔══██╗██╔═══╝ ██║   ██║╚════██║
 ╚███╔███╔╝██║  ██║██║  ██║██║     ╚██████╔╝███████║
  ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝      ╚═════╝ ╚══════╝

The open-source platform for AI agents.

Write logic, deploy everything.

PyPI Version Python License: MIT GitHub Stars

Website · Docs · PyPI · Examples


What is WarpOS?

WarpOS is a lightweight framework for building AI agents that actually work in production. It handles the messy parts — provider routing, tool orchestration, memory management, and server deployment — so you can focus on writing agent logic.

Ship a working agent in minutes, not days.

from warpos import Agent, tool

@tool
def get_weather(city: str) -> str:
    """Get the current weather for a city."""
    return f"Sunny, 72°F in {city}"

agent = Agent(
    name="WeatherBot",
    model="gpt-4o",
    tools=[get_weather],
    instructions="You are a helpful weather assistant.",
)

response = agent.run("What's the weather in San Francisco?")
print(response)

Quick Start

pip install warpos

Set your API key:

export OPENAI_API_KEY=sk-...

Run your first agent:

from warpos import Agent

agent = Agent(name="MyAgent", model="gpt-4o")
print(agent.run("Hello! What can you do?"))

Or serve with a chat UI:

warp init my-agent
cd my-agent
warp serve
# → http://localhost:3000

Features

  • Multi-provider — OpenAI, Anthropic, Groq, DeepSeek, Ollama, Cerebras
  • Tool calling — Decorate any Python function with @tool
  • Memory — Built-in persistent conversation memory (SQLite + FTS5)
  • Chat UI — Auto-generated WebSocket chat interface
  • CLI — warp init scaffolds, warp serve deploys
  • Type-safe — Full type hints, Pydantic support
  • Lightweight — Minimal dependencies, fast startup

Providers

Swap providers with one line:

agent = Agent(name="Bot", provider="openai", model="gpt-4o")
agent = Agent(name="Bot", provider="anthropic", model="claude-sonnet-4-20250514")
agent = Agent(name="Bot", provider="groq", model="llama3-70b-8192")
agent = Agent(name="Bot", provider="ollama", model="llama3")
Provider Env Variable Base URL
OpenAI OPENAI_API_KEY api.openai.com
Anthropic ANTHROPIC_API_KEY api.anthropic.com
Groq GROQ_API_KEY api.groq.com
DeepSeek DEEPSEEK_API_KEY api.deepseek.com
Cerebras CEREBRAS_API_KEY api.cerebras.ai
Ollama — localhost:11434

CLI

warp init my-agent     # scaffold a new project
warp serve agent.py    # serve with chat UI on :3000
warp serve -p 8080     # custom port

Architecture

┌─────────────────────────────────────────────┐
│                   Agent                      │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  │
│  │  Memory   │  │  Tools   │  │ Provider │  │
│  └──────────┘  └──────────┘  └──────────┘  │
└─────────────────────────────────────────────┘
                      │
               ┌──────┴──────┐
               │   Server    │
               │  (FastAPI)  │
               └─────────────┘
  • Agent — Orchestrates context, tools, and provider calls
  • Tools — Python functions exposed via @tool decorator
  • Memory — SQLite + FTS5 persistent conversation storage
  • Provider — Unified LLM routing with OpenAI/Anthropic compatibility
  • Server — FastAPI + WebSocket with auto-generated chat UI

Examples


Contributing

git clone https://github.com/warp-os/warpos.git
cd warpos
pip install -e ".[dev]"
pytest

See CONTRIBUTING.md for details.


License

MIT — see LICENSE.


Metadata

Release files for warpos 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for warpos 0.1.3
File Size Uploaded Provenance Actions
warpos-0.1.3.tar.gz 26.3 kB Without provenance Details for warpos-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for warpos 0.1.3
File Interpreter ABI Platform Actions
warpos-0.1.3-py3-none-any.whl Python 3 none any Details for warpos-0.1.3-py3-none-any.whl

Total release size: 42.9 kB

Release files / warpos-0.1.3.tar.gz

Download URL warpos-0.1.3.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
31ee9c044553f59aa433a438a64f1162f9b2b1c0e4f246436421f9ba2131f7d0
BLAKE2b-256 checksum
How to use checksums
727095f7ad56b55a57e8d985ff44e4cf3b6be52e95385a1e2d4364d24739cd73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / warpos-0.1.3-py3-none-any.whl

Download URL warpos-0.1.3-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c4d6b5e9f6609b6a062ff02c1d829d4c9665f0205b1a9ea2928fdc2856e5626
BLAKE2b-256 checksum
How to use checksums
bf87ba59e1d8a3ec792d4beacc04160b41e41e9b13a77335725948fa23d40dd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for warpos 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page