Skip to main content

Dari CLI.

Project description

Dari CLI

dari validates, packages, and publishes agent projects to Agent Host.

Full docs: https://docs.dari.dev

Install

uv tool install dari-cli

Or:

pipx install dari-cli

From GitHub before a PyPI release:

uv tool install git+https://github.com/mupt-ai/dari-cli.git

Commands

Most commands require dari auth login first. The CLI talks to https://api.dari.dev.

auth

dari auth login      # browser login, caches org key locally
dari auth logout     # clear local login state
dari auth status     # show current login and org

org

dari org list
dari org create <name>
dari org switch <organization>               # slug or id
dari org members
dari org invite <email> [--role owner|admin|member]

deploy

dari deploy [repo_root]
Flag Description
--api-key Override the cached org key
--agent-id Publish to a specific agent
--dry-run Validate and package without uploading

api-keys

dari api-keys list
dari api-keys create --name <name>           # plaintext key returned once
dari api-keys revoke <key_id>

credentials

Stored secrets referenced by name from dari.yml (e.g. llm.api_key_secret: OPENROUTER_API_KEY).

dari credentials list
dari credentials add <name> [value]          # prompts if value omitted
dari credentials add <name> --value-stdin < secret.txt
dari credentials remove <name>

manifest

dari manifest validate [repo_root]
dari manifest validate --json                # prints normalized manifest

Bundle shape

The repo root must contain:

  • dari.yml
  • Dockerfile
  • any prompt files referenced by instructions
  • custom tools under tools/<name>/tool.yml

Supported harness values: pi, opencode, openai-agents, claude-agent-sdk.

Minimal dari.yml:

name: support-agent
harness: pi

instructions:
  system: prompts/system.md

runtime:
  dockerfile: Dockerfile

sandbox:
  provider: e2b
  provider_api_key_secret: E2B_API_KEY

tools:
  - name: repo_search
    path: tools/repo_search
    kind: main
  - name: sandbox.exec
    kind: ephemeral

Store the referenced E2B key as an org credential before publishing:

dari credentials add E2B_API_KEY

See examples/ for per-harness starters. Full schema: https://docs.dari.dev/manifest.

Local development

uv sync --group dev
uv run pytest

Release

  1. Bump version in pyproject.toml.
  2. Refresh uv.lock so the editable entry matches.
  3. Commit the bump before tagging.
  4. uv build && uv run pytest.
  5. Push a v0.1.x tag matching pyproject.toml — the release workflow rejects mismatched tags.

Contributing

See CONTRIBUTING.md.

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

dari_cli-0.1.4.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

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

dari_cli-0.1.4-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file dari_cli-0.1.4.tar.gz.

File metadata

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

File hashes

Hashes for dari_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fa9321de144bfcf4361e7d69a96163965777778ff06b140ddd8a51cc2dc2f824
MD5 ac0a45ec515563b7c81278c6414a053b
BLAKE2b-256 345f57927c695c667f1f69f761be0dfc005c258de9ce0a6fe570cfc50ff96622

See more details on using hashes here.

Provenance

The following attestation bundles were made for dari_cli-0.1.4.tar.gz:

Publisher: release.yml on mupt-ai/dari-cli

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

File details

Details for the file dari_cli-0.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for dari_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b0dcf591807e7540e0b35388819cf95be060109e3e8d0a8410a609ee9422d042
MD5 228a27694bd05538cf3bfe241c513c3b
BLAKE2b-256 b1d44291be1154d3c4bb618999278386f8b9d841b8c91e75b284500c16a3ac4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dari_cli-0.1.4-py3-none-any.whl:

Publisher: release.yml on mupt-ai/dari-cli

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