Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Depricated, no longer maintained.

AgentFactory

The universal AI agent factory — a Python SDK and a self-hosted Studio for building, running, and operating any AI agent.

PyPI version License: MIT Python 3.10+ CI Coverage Docs Code of Conduct

AgentFactory is a configuration-driven Agent OS: instead of writing a new codebase for every agent you need, you define an agent's identity, tools, and rules as data and the same engine brings it to life — a software engineer, a research analyst, a customer assistant, anything.

  • SDK — one pip install gives you LLM failover, persistent memory, native tool calling, streaming, skills, MCP, and human-in-the-loop approvals.
  • Studio — a self-hosted multi-user dashboard: sign up, build agents, install tools/skills/MCP servers, run with full observability, and operate from a built-in terminal.

Table of Contents


✨ Features

Engine

🧠 Universal agent template One engine, any agent — identity, tools, and rules are configuration, not code
🔁 LLM failover pipeline Gemini → OpenAI → Anthropic with per-call failover and USD budget control
💾 Persistent memory SQLite-backed conversation history + key-value facts, export/import bundles
⚡ Streaming output Async generators for text and tool calls
🛠️ Tool system Built-ins, @tool decorator, and validated custom Python tools in a sandbox
🧩 Skill marketplace Load skills from packages, directories, or the Studio marketplace
🔌 MCP support Model Context Protocol servers with command/env allowlists and per-tool toggles
✅ Verifier Post-execution checks with failing-line context pruning and audit reports
📚 Feedback learning learn_from_correction() for continuous self-improvement

Studio platform

👥 Multi-user auth Signup/login (argon2id), JWT rotation, workspaces, roles
🤖 Agent studio Build agents with constitution rules and autonomy guardrails
🚀 Streaming runs SSE event stream per run, retries, per-agent daily budgets
✋ Human-in-the-loop Gate mode, proposal inbox, Discord/Gmail/webhook notifications
🧪 Custom tools Compile + AST-validated code with per-tool env allowlists
🏪 Marketplace Curated tools/skills/MCP catalog with trust indicators + audit trail
📊 Observability Run events, cost/token dashboards, budget alerts (80% / 100%)
🖥️ Terminal In-browser PTY shell with destructive-command confirmation
🛡️ Guardrails Protected branches, path allowlists, constitutional rules

🚀 Quick Start

Option A — Self-host the Studio (full experience) ✅ this is the product

One command, one process, one port:

pip install 'agentfactory-studio[platform]'   # or: pip install -e .
agentfactory studio                            # builds the UI if needed

Open http://localhost:8000 — that's the Studio: sign up, create an agent, add tools/skills/MCP servers and a model connection with your own API key, run a task, and watch it stream — with approvals, memory, terminal, and full observability. API docs: http://localhost:8000/docs.

Step-by-step walkthrough of every feature (API + UI + tests): docs/testing.md — "Local Testing Guide"

# …or Docker (one container serves API + UI + worker)
docker build -t agentfactory .
docker run -d -p 8000:8000 \
  -e AGENTFACTORY_JWT_SECRET="$(openssl rand -hex 32)" \
  -v agentfactory-data:/data \
  agentfactory

PyPI note: the distribution publishes as agentfactory-studio because the bare agentfactory name is squatted on PyPI (placeholder 0.0.0 release by another author). The Python import package remains agentfactory. Until the first PyPI release, install from source: pip install git+https://github.com/theaaqibjavaid/agent-factory.git.

Option B — SDK only (no Studio UI)

pip install agentfactory-studio[all]   # all LLM providers
agentfactory init
agentfactory run

⚠️ Legacy v1 flow. init / run / create-agent / list-tools are the old SDK/approval-server commands, kept for backwards compatibility. For the current platform use agentfactory studio (Option A).

See docs/quick-start.md, docs/testing.md, and docs/self-host.md.


🧩 SDK Usage

import asyncio
from agentfactory import AgentFactory

async def main():
    factory = AgentFactory()
    agent = factory.create_agent("Senior")
    result = await agent.run("Implement user authentication")
    print(result)

asyncio.run(main())

Custom tools, skills, MCP servers, and memory integrate through the registry — see the API reference and tool system.


🖥️ CLI Reference

The command you want is agentfactory studio — it runs the whole product (API + Studio UI) on one port. The other commands below are legacy v1 SDK tooling; they still exist for backwards compatibility but you don't need them for the platform.

Command Description
agentfactory studio Run the full platform (API + UI) on http://localhost:8000 — the one command you need
agentfactory init (legacy v1) Scaffold a project + .env
agentfactory run (legacy v1) Approval server + background worker
agentfactory create-agent (legacy v1) Add an agent profile
agentfactory list-tools (legacy v1) List registered tools
agentfactory status (legacy v1) Check the approval server
agentfactory token (legacy v1) Mint a local JWT

Full reference: docs/cli-reference.md.


🏗️ Architecture

┌────────────────────────────────────────────────────────────────┐
│                        Studio (web/)                           │
│  Dashboard · Agent editor · Tools/Skills/MCP · Terminal ·      │
│  Observability · Approvals · Settings                          │
└──────────────────────────────┬─────────────────────────────────┘
                               │ HTTP / SSE / WebSocket
┌──────────────────────────────▼─────────────────────────────────┐
│                 Platform API (agentfactory/app)                │
│  Auth · Workspaces · Agents · Runs · Proposals · Memories ·    │
│  Tools · Skills · MCP · Models · Marketplace · Terminal ·      │
│  Observability        (SQLite, argon2id, JWT rotation)         │
└──────────────────────────────┬─────────────────────────────────┘
                               │ in-process worker + run broker
┌──────────────────────────────▼─────────────────────────────────┐
│                    Runtime (agentfactory/runtime.py)            │
│  LLM failover · tool sandbox · skills · MCP attach ·           │
│  constitution · guardrails · budget alerts · notifications     │
└────────────────────────────────────────────────────────────────┘

More: docs/architecture.md, docs/design.md.


🛡️ Security

Security is a first-class concern: argon2id password hashing, JWT rotation with revocation, per-IP rate limiting on auth, opt-in encryption-at-rest (set AGENTFACTORY_ENCRYPTION_KEY to encrypt conversations, facts, plans, and approval data), validated + sandboxed custom tool execution with schema-validated tool arguments, MCP command/env allowlists, destructive-command guards, path allowlists, secret-scrubbed logs, and an automated security pipeline (bandit, pip-audit, mypy, coverage gate) in CI.


📚 Documentation

Full index: docs/SUMMARY.md

Area Doc
🏠 Self-hosting (Docker, env vars, TLS) docs/self-host.md
🔄 Migrating v1 → v2 docs/migration-v1-v2.md
🧠 Architecture docs/architecture.md
🚀 Quick start docs/quick-start.md
🛠️ Tools & skills docs/tools.md · docs/skills.md
🔌 MCP docs/mcp-integration.md
🔁 LLM failover docs/llm-failover.md
💾 Memory docs/memory.md
📡 API reference docs/api-reference.md
⚙️ Environment variables docs/env-vars.md

🤝 Contributing

We welcome contributions of all kinds — code, docs, issues, and feedback.

Every PR runs the full gate in CI: tests + coverage ≥ 80%, mypy, ruff, bandit, pip-audit, and the Studio build.

⭐ If AgentFactory helps you build something, star the repo — it tells us the work matters and helps others find it.


📄 License

MIT © 2026 AgentFactory Contributors

Metadata

Release files for agentfactory-studio 1.2.0

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

Source distribution (sdist)

Source distribution for agentfactory-studio 1.2.0
File Size Uploaded Provenance Actions
agentfactory_studio-1.2.0.tar.gz 165.1 kB With provenance Details for agentfactory_studio-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentfactory-studio 1.2.0
File Interpreter ABI Platform Actions
agentfactory_studio-1.2.0-py3-none-any.whl Python 3 none any Details for agentfactory_studio-1.2.0-py3-none-any.whl

Total release size: 317.9 kB

Release files / agentfactory_studio-1.2.0.tar.gz

Download URL agentfactory_studio-1.2.0.tar.gz
Size 165.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3983a7a227e5b13b23355b66b63393bcc93cfc5c8d47ffaf95e4274e7f82aa1c
BLAKE2b-256 checksum
How to use checksums
81fa6f09298d9b4b6cdbb09e55b49c1e462d8a7d0ae49ba1b4f3c62b9a92abd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / agentfactory_studio-1.2.0-py3-none-any.whl

Download URL agentfactory_studio-1.2.0-py3-none-any.whl
Size 152.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cd666d58098873df6f9d1dd156dee8ffaf7837bf2e18d0b19b0ba89d4fbd61e
BLAKE2b-256 checksum
How to use checksums
f2bd5f071d82ae772440e6172a543c75abab313c6f7edc1dd0b3ec6e9c5c38be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Security for agentfactory-studio 1.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentfactory_studio-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

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