SuperAPI AI Directory

agentfield

Open-source control plane that makes AI agents callable as microservices. Routing, coordination, memory, async execution, and cryptographic audit trails. Supports Python, Go, and TypeScript.

Open website

About this tool

AgentField is an open-source control plane (open-source AI backend) whose goal is to let AI agents be built, run, and scaled like APIs and microservices—a single request can fan out to thousands of agents, and the control plane queues, retries, and traces every branch.

Uses:

  • Turn agents into APIs that can be called by any service: frontends, backends, other agents, scheduled tasks, etc.
  • Turn ordinary functions written in Python, Go, or TypeScript into production infrastructure: routing, coordination, memory, asynchronous execution, and observability.
  • Every function is automatically exposed as a REST endpoint; the same code scales from a single agent on a laptop to tens of thousands of agents in a single workflow.

Main capabilities:

  • Build: Write in Python, Go, or TypeScript, and every function becomes a REST endpoint, with no DSL, YAML, or graph wiring required.
  • Reasoners and Skills: @app.reasoner() for AI judgment, @app.skill() for deterministic code.
  • Structured AI: app.ai(schema=MyModel) returns typed Pydantic/Zod output from any LLM.
  • Harness: app.harness("Fix the bug") dispatches multi-turn tasks to AForge (AgentField's built-in coding harness); other harnesses (such as claude-code, codex, gemini, opencode, pi, omp) can be orchestrated via the provider parameter.
  • Cross-agent calls: app.call("other-agent.func") is routed through the control plane and fully traced; recursion becomes distributed fan-out.
  • Discovery: app.discover(tags=["ml*"]) finds agents and capabilities across the mesh; tools="discover" allows the LLM to call them automatically.
  • Memory: app.memory.set() / .get() / .similarity_search(), supporting KV and vector search, four scopes, and no Redis required.
  • Asynchronous execution: fire-and-forget, webhooks, SSE streaming, retries, no timeout limit, and agents can run for hours or days.
  • Canary deployment: traffic-weighted routing, A/B testing, blue-green deployment, with gradual rollout at 5% → 50% → 100%.
  • Human-in-the-loop: app.pause() pauses execution to wait for human approval, crash-safe, durable, auditable.
  • Observability: automatic workflow DAG, Prometheus /metrics, structured logs, execution timeline.
  • Governance: IAM for AI agents, each agent gets a cryptographic identity (W3C DID), authenticates with each other via cryptographic signatures; each execution generates verifiable credentials (verifiable offline: af vc verify audit.json); tag-based policy gates are enforced by the infrastructure, not by prompts.

How to use:

  • The installer provides the af command under ~/.agentfield/bin, and can also place the aforge coding tool at the same time (use --no-aforge to skip).
  • On macOS, the installer also registers the control plane as a login startup (launchd) and adds a menu bar icon; use af service stop or the menu bar icon to stop it (a direct kill will be treated as a crash and restart); af service status shows health status and work in progress; use --no-tray to skip.
  • In a coding agent, use /agentfield to paste the specification, and you get an end-to-end wired Docker Compose stack—agents, control plane, and production-grade REST API endpoints that can be pasted and tested with curl.
  • Install ready-made agent nodes with a single command: af install <repo-url> clones the repository, isolates dependencies, and registers the node; shared secrets (such as OPENROUTER_API_KEY) only need to be entered once, are stored encrypted, and are reused across nodes.
  • Deployment supports Docker Compose, Kubernetes, and production environments; the control plane can be horizontally scaled behind a load balancer. Work is admitted by a bounded in-process queue with backpressure (429/503 plus Retry-After); during graceful shutdown, in-progress executions end with status_reason control_plane_shutdown rather than being silently dropped.

Use cases:

  • When a second service needs to call your agent, put it on AgentField to avoid hand-writing queues, retries, discovery, and tracing.
  • Already-running high-load examples: a deep research engine fans out 10,000+ agent calls in a single workflow; a security auditor runs 250 collaborating agents per audit.
  • Existing orchestration frameworks can be retained; reasoners are ordinary functions, and existing LangGraph or CrewAI code can run inside them.

Limitations and notes:

  • The control plane is a stateless Go service; agents can connect from anywhere (laptop, Docker, Kubernetes).
  • By default, privacy-minimized installation and lifecycle telemetry is sent, with no prompts or execution payloads; set AGENTFIELD_TELEMETRY_ENABLED=false to disable.
  • For comparisons with LangChain, CrewAI, and workflow engines, as well as complete features, architecture, and deployment documentation, consult the official documentation.
  • Other details not provided in the materials are not yet available.