Skip to main content

AI Agent Framework — automates tasks using AI agents in Docker containers

Project description

Agento

Security by design, not by prompt.

CI License: MIT Python 3.12+

Stop running agents in YOLO mode. Build them with isolation, policy, and modular control.

Agento is an open-source, self-hosted platform for building modular agentic software with hard runtime boundaries, controlled tool access, secure secrets handling, and deployment-specific extensibility.

Modern agent stacks are powerful, but in practice they are often glued together from prompts, scripts, MCP servers, and broad permissions. The result is fragile and risky: duplicated files, unclear tool access policies, missing human approval steps, over-permissioned agents, and no clean way to route the right task to the right agent and model.

Agento is extensible by design. Creating and sharing custom modules is simple. Want to distribute your QA agent as a reusable template? Package it as a self-contained module and share it with your team, your clients, or the community.

Why Agento?

  • Secure by architecture — agents run in an isolated sandbox without direct access to secrets.
  • Controlled tool access — enforce policies for tools like email, browser, and external systems.
  • Modular by default — extend behavior through modules, not by patching core code.
  • Deployment-specific customization — adapt agents, policies, and workflows per workspace or environment.
  • Routing-ready — decide which agent, model, and tool policy should handle each task.
  • Built for self-hosting — keep control over your infrastructure, credentials, and runtime boundaries.

The problem

Teams adopting AI agents quickly run into the same issues:

  • too many separate agents with duplicated prompt and config files,
  • unclear separation between runtime, tools, and secrets,
  • agents operating with permissions that are too broad,
  • missing or weak HITL / approval flows,
  • no enforceable policy layer for actions like sending email or browsing the web,
  • no clean routing layer for deciding which task should go to which agent and model.

We keep hearing the same failure stories: deleted workspaces, leaked emails, agents browsing beyond intended domains, and automations acting with more access than they should ever have had.

The solution

Agento brings structure, security, and extensibility to agentic systems through:

  • task routing
  • runtime isolation
  • tool access policies
  • secrets separation
  • filesystem and environment separation
  • custom MCP-based security proxy
  • module-driven extensibility

Inspiration

Agento is inspired by Magento Open Source — especially its extensibility, extension-first architecture, and strong community model — but rethought for the age of AI agents, MCP tools, and secure autonomous workflows.

Quick Start

uv tool install agento-core           # Install the CLI
mkdir my-project && cd my-project
agento install                        # Interactive wizard — scaffolds, starts, migrates

Architecture

Agento runs three Docker containers on a shared network:

  • Cron (Python) -- Job queue consumer, scheduler, CLI host. Manages the lifecycle of agent jobs, runs migrations, and dispatches events. Connects to MySQL for job state, config, and module metadata.
  • Toolbox (Node.js) -- MCP credential broker. Registers tools from modules (MySQL adapters, API clients) and exposes them over stdio. The only container with access to secrets.
  • Sandbox (Claude Code / OpenAI Codex) -- Ephemeral container where the AI agent executes. Has no credentials, no direct database access. Communicates with the toolbox exclusively through MCP tool calls.

Module System

Agento uses a Magento-inspired modular architecture. Each module is a self-contained package.

Core modules ship with the framework in src/agento/modules/ (jira, claude, codex, core, crypt, agent_view).

User modules live in app/code/ and are deployment-specific (gitignored by default).

Every module contains a module.json manifest and optional companion files:

File Purpose
module.json Module manifest (name, version, tools, knowledge)
di.json Dependency injection configuration
events.json Observer declarations for event-driven extensibility
config.json Default config values with field metadata
cron.json Scheduled job definitions
sql/*.sql Schema migrations
data_patch.json Data patches applied during setup

Config follows a 3-level fallback: ENV vars (CONFIG__MODULE__PATH) take highest priority, then DB (core_config_data), then config.json defaults. Config can be scoped per agent_view for multi-tenant setups.

Events use an observer pattern. Modules declare observers in events.json and the framework dispatches events synchronously during lifecycle hooks (job start, job complete, schedule tick, etc.).

Installation

Docker Compose (recommended)

For end users, demos, PoC, and self-hosting:

uv tool install agento-core          # or: pip install agento-core
mkdir my-project && cd my-project
agento install                        # Interactive wizard — scaffolds, starts, migrates

The installer offers Basic (recommended) and Advanced modes. Basic uses sensible defaults. Advanced lets you configure Docker project name, MySQL port, and timezone for multi-instance setups.

System check

agento doctor                         # Verify prerequisites

Creating Your First Module

agento module:add my-app \
  --description="My application module" \
  --tool mysql:mysql_prod:"Production database (read-only)"

This creates a module in app/code/my-app/ with a module.json, config.json, and knowledge/ directory. Set credentials with:

agento config:set my_app/tools/mysql_prod/host 10.0.0.1
agento config:set my_app/tools/mysql_prod/pass secret123

See Creating a Module for the full guide.

Documentation

Full developer documentation is available in docs/:

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines on setting up a development environment, running tests, and submitting pull requests.

License

MIT. See LICENSE for the full text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agento_core-0.3.2.tar.gz (192.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agento_core-0.3.2-py3-none-any.whl (275.4 kB view details)

Uploaded Python 3

File details

Details for the file agento_core-0.3.2.tar.gz.

File metadata

  • Download URL: agento_core-0.3.2.tar.gz
  • Upload date:
  • Size: 192.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agento_core-0.3.2.tar.gz
Algorithm Hash digest
SHA256 79269e8e01752b153471d4562beba92f4a7f6ba75a480c58e2df5953a2551281
MD5 189f125dd7575548a134019e2ffa98ff
BLAKE2b-256 c228bd9bfa5f58ff849d101123d7803f691579a7c65270a6e087edee1609b620

See more details on using hashes here.

Provenance

The following attestation bundles were made for agento_core-0.3.2.tar.gz:

Publisher: release.yml on agento-cc/agento

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agento_core-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: agento_core-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 275.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agento_core-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 301c5f04f84de8045c722ec57d1f3bb698bb4fec4502b9ea8fe4b18d9e666496
MD5 8b20c578bfe30dc7aca55095bafb1b34
BLAKE2b-256 e545324ddef6863e08d2cce3df7d74d607d6647a78cbe8804a1fcbe452b8d6de

See more details on using hashes here.

Provenance

The following attestation bundles were made for agento_core-0.3.2-py3-none-any.whl:

Publisher: release.yml on agento-cc/agento

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page