Open Agent (OA)
Define AI agents with YAML. Generate working scaffolding instantly.
Open Agent (OA) is a YAML specification for defining AI agents and generating working scaffolding.
Building AI agents today often requires manually wiring together:
- prompt templates
- LLM configuration
- task routing
- memory structures
- runtime logic
Open Agent moves these concerns into a declarative specification.
Define an agent once in YAML and run it directly, or generate a project scaffold for customization.
You can think of OA as something similar to OpenAPI for services or Terraform for infrastructure, but for AI agents.
Quick Start
Install the CLI:
pip install open-agent-spec
Set your LLM API key (example for OpenAI):
export OPENAI_API_KEY=your_api_key_here
Create an agent spec:
agent:
name: hello-world-agent
role: chat
intelligence:
engine: openai
model: gpt-4
tasks:
greet:
description: Say hello to someone
input:
type: object
properties:
name:
type: string
required: [name]
output:
type: object
properties:
response:
type: string
required: [response]
prompts:
system: >
You greet people by name.
user: "{{ name }}"
Run the agent directly from the spec:
oas run --spec agent.yaml --task greet --input '{"name":"Alice"}' --quiet
Generate a Project Scaffold (Optional)
If you want to extend the implementation, generate a project scaffold:
oas init --spec agent.yaml --output ./agent
This produces a Python project you can customize.
Generated Project Structure
agent/
├── agent.py
├── models.py
├── prompts/
├── requirements.txt
├── .env.example
└── README.md
Design Philosophy
Open Agent intentionally keeps the specification minimal.
The goal is to define agents declaratively and generate consistent project scaffolding.
Tasks in an OA specification are intended to represent atomic units of capability for an agent, rather than complex workflows. Higher-level orchestration can be built on top of these primitives by external systems.
OA does not prescribe:
- runtime orchestration
- governance systems
- evaluation frameworks
These concerns can be layered on top by different runtimes, frameworks, or architectures.
Why OA?
Many teams building agents end up recreating the same infrastructure:
- agent scaffolding
- prompt organization
- model configuration
- task definitions
OA provides a consistent way to define agents once and generate a working structure automatically.
Related Work
Several projects are exploring ways to standardize how AI agents are defined and orchestrated.
Open Agent focuses specifically on developer-facing scaffolding from a declarative YAML specification.
The goal is to make agent architecture easier to reason about and quicker to implement.
Commands
| Command | Purpose |
|---|---|
oas init --spec … --output … |
Generate project from YAML |
oas init --template minimal --output … |
Same with bundled spec |
oas init aac |
.agents/ + example spec only |
oas run --spec … [--task …] [--input JSON] [--quiet] |
Run task without codegen |
oas update --spec … --output … |
Regenerate into existing dir |
oas init … --dry-run |
Validate only |
oas --help
More detail
| Resource | Contents |
|---|---|
| docs/REFERENCE.md | Full spec, engines, templates |
| Repository | Source, issues, CI |
License
MIT — see LICENSE.
Metadata
Release files for open-agent-spec 1.2.2
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 |
|---|---|---|---|---|
| open_agent_spec-1.2.2.tar.gz | 153.6 kB | Without provenance | Details for open_agent_spec-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| open_agent_spec-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for open_agent_spec-1.2.2-py3-none-any.whl |
Total release size: 211.6 kB
Release files / open_agent_spec-1.2.2.tar.gz
| Download URL | open_agent_spec-1.2.2.tar.gz |
|---|---|
| Size | 153.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c595b65db44ce86c7aa361ebee2402b66949d8518af452ed5b04b30f7c67045f
|
|
BLAKE2b-256 checksum How to use checksums |
26bf1ad4daa017d8c798e778d9a6ff8c93806fde11d4a649d6c47996fcfa9eeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Release files / open_agent_spec-1.2.2-py3-none-any.whl
| Download URL | open_agent_spec-1.2.2-py3-none-any.whl |
|---|---|
| Size | 58.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79aaa7b31eaec7e873190aca807fc7db375ee091e2ac46a1ec8f01e7dc0a7a16
|
|
BLAKE2b-256 checksum How to use checksums |
f087c5ad9f2f29e3992ac508c38f0b091f0bcb6cf76eca23a2521a6af3c00a29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Security for open-agent-spec 1.2.2
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.