CLI for building and deploying AI agents as containers
Project description
ninetrix
Build and deploy AI agents as Docker containers. Define your agent in YAML, ship it anywhere Docker runs.
pip install ninetrix
Quickstart
# Scaffold a new agent
ninetrix init --name my-agent --provider anthropic
# Build the container image
ninetrix build --file ninetrix.yaml
# Run it interactively
ninetrix run --file ninetrix.yaml
Multi-agent crews
# Start all agents on a shared Docker network
ninetrix up --file ninetrix.yaml
# Trigger the orchestrator
ninetrix invoke --agent orchestrator -m "Research Python history and write a summary"
# Stream logs from all agents
ninetrix logs --file ninetrix.yaml
# Visualize the execution trace
ninetrix trace --thread-id <id>
# Tear down
ninetrix down --file ninetrix.yaml
ninetrix.yaml
agents:
orchestrator:
metadata:
role: "Research Orchestrator"
goal: "Coordinate search and synthesis"
runtime:
provider: anthropic
model: claude-sonnet-4-6
tools:
- { name: search, source: mcp://duckduckgo }
collaborators: [researcher, writer]
governance:
max_budget_per_run: 1.00
human_approval: true
triggers:
- type: webhook
endpoint: /run
researcher:
runtime: { model: claude-haiku-4-5-20251001 }
tools:
- { name: search, source: mcp://duckduckgo }
- { name: files, source: mcp://filesystem }
writer:
runtime: { model: claude-sonnet-4-6, temperature: 0.7 }
tools:
- { name: files, source: mcp://filesystem }
Commands
| Command | Description |
|---|---|
ninetrix init |
Scaffold a new ninetrix.yaml |
ninetrix build |
Build container images |
ninetrix run |
Run a single agent interactively |
ninetrix up |
Start all agents on a Docker bridge network |
ninetrix down |
Stop and remove all crew containers |
ninetrix status |
Show running agent containers |
ninetrix logs |
Stream logs from all agents |
ninetrix invoke |
POST a message to a running agent |
ninetrix trace |
Render a multi-agent execution tree |
ninetrix mcp list |
List available MCP tool servers |
Environment variables
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY |
Anthropic API key |
OPENAI_API_KEY |
OpenAI API key |
DATABASE_URL |
PostgreSQL URL for persistence |
ninetrix_PROVIDER |
Override model provider at runtime |
ninetrix_MODEL |
Override model at runtime |
Requirements
- Python 3.10+
- Docker
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ninetrix-0.2.2.tar.gz.
File metadata
- Download URL: ninetrix-0.2.2.tar.gz
- Upload date:
- Size: 166.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
306240dcb64718c561c500952edb2598a4199714181d38d3117e37904d116a7f
|
|
| MD5 |
56976e4c559b77f39f26e3b282131a9c
|
|
| BLAKE2b-256 |
063e561335ea0f046d859f2a208f3d59d4676ed252901d17ee458a6c7f335a3d
|
Provenance
The following attestation bundles were made for ninetrix-0.2.2.tar.gz:
Publisher:
release-cli.yml on Ninetrix-ai/Ninetrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ninetrix-0.2.2.tar.gz -
Subject digest:
306240dcb64718c561c500952edb2598a4199714181d38d3117e37904d116a7f - Sigstore transparency entry: 1159640970
- Sigstore integration time:
-
Permalink:
Ninetrix-ai/Ninetrix@6c17919cf5ce5cdf89f25bbf689412eff547992a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Ninetrix-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-cli.yml@6c17919cf5ce5cdf89f25bbf689412eff547992a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ninetrix-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ninetrix-0.2.2-py3-none-any.whl
- Upload date:
- Size: 201.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aad9c57aa7be038a70d51e5898e07f826bc7280671489b9e30569f25668b308
|
|
| MD5 |
0eb13b2bfcc6c1bb7194412d38453d7b
|
|
| BLAKE2b-256 |
824c57393e321f9a33fa3db9e9f13a66b7a324dfedf3ba3cd784643c72d16ebb
|
Provenance
The following attestation bundles were made for ninetrix-0.2.2-py3-none-any.whl:
Publisher:
release-cli.yml on Ninetrix-ai/Ninetrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ninetrix-0.2.2-py3-none-any.whl -
Subject digest:
3aad9c57aa7be038a70d51e5898e07f826bc7280671489b9e30569f25668b308 - Sigstore transparency entry: 1159641009
- Sigstore integration time:
-
Permalink:
Ninetrix-ai/Ninetrix@6c17919cf5ce5cdf89f25bbf689412eff547992a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Ninetrix-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-cli.yml@6c17919cf5ce5cdf89f25bbf689412eff547992a -
Trigger Event:
workflow_dispatch
-
Statement type: