Skip to main content

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


Download files

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

Source Distribution

ninetrix-0.1.0.tar.gz (87.7 kB view details)

Uploaded Source

Built Distribution

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

ninetrix-0.1.0-py3-none-any.whl (108.0 kB view details)

Uploaded Python 3

File details

Details for the file ninetrix-0.1.0.tar.gz.

File metadata

  • Download URL: ninetrix-0.1.0.tar.gz
  • Upload date:
  • Size: 87.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ninetrix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 696c51b8595fe5778e217a5e2a0b2fceec2143d2e3d1d19ed65bb4df93192da3
MD5 12c35c55eb50c5c365e9a713f842bb74
BLAKE2b-256 bda3e931a52a8c8467093008a048df091da26193209b21fc2b5eca7a21b42588

See more details on using hashes here.

Provenance

The following attestation bundles were made for ninetrix-0.1.0.tar.gz:

Publisher: release-cli.yml on Ninetrix-ai/Ninetrix

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

File details

Details for the file ninetrix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ninetrix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ninetrix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15a26fef0f5924aeaa128eb1b871382e6c8f531c4e85c295887b8cd51d3383f0
MD5 3134961e91105903d6a91e4018831868
BLAKE2b-256 810038b5999f3f39afacbfdaf3fd9d850d18ee13b35e57c6e6b85509580b73a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ninetrix-0.1.0-py3-none-any.whl:

Publisher: release-cli.yml on Ninetrix-ai/Ninetrix

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