Skip to main content

Sirb — CLI for the decentralized AI compute network. EXPERIMENTAL / BETA: provided as-is, no warranty, use at your own risk.

Project description

sirb — Sirb CLI

A thin command-line client for the Sirb decentralized AI compute network.

Full documentation: sirb.run/docs/cli — renders the same content as docs/cli.md in the repo.

⚠ Experimental / beta software

Sirb is in active development. Interfaces, data layouts, on-chain contracts, image tags, pricing, and reward mechanics may change without notice — sometimes in ways that aren't backward-compatible. The software is provided as-is, without warranty of any kind. By running the CLI, the node-agent, the gateway, or the contracts you accept that the maintainers and contributors are not responsible for any damages, data loss, hardware wear, financial loss, security incidents, regulatory issues, or other consequences arising from its use. Run on hardware you control, with credentials and funds you can afford to lose.

Install

pip install sirb

From PyPI (pypi.org/project/sirb). Installs a sirb binary into your $PATH.

For local hacking on the CLI itself:

git clone https://github.com/ammarwa/SIRB.git
pip install -e SIRB/cli

First-time setup

sirb login \
  --base-url https://api.sirb.run \
  --api-key sirb_... \
  --model gemma4:e4b

Saves to ~/.sirb/config.json (mode 0600). Environment variables override the saved config per-command: SIRB_API_KEY, SIRB_BASE_URL, SIRB_MODEL.

Don't have a key yet? Mint one in 30 seconds — no signup, no email:

curl -X POST https://api.sirb.run/v1/signup \
  -H 'Content-Type: application/json' \
  -d '{"name":"laptop"}'

Commands

sirb models                                       # list available models + aliases
sirb chat "explain CRDTs in three sentences"
sirb chat --stream "write a haiku about uvicorn"  # token-by-token streaming
sirb chat -m gemma4:e4b "..."                     # pick a specific model
sirb balance                                      # your remaining SIRB
sirb usage --from 2026-05-01 --to 2026-05-14
sirb keys list
sirb keys create --name "opencode"                # plaintext shown once
sirb keys revoke key_abc123
sirb opencode config                              # JSON snippet for OpenCode
sirb opencode env                                 # `export` lines for OpenAI-SDK tools

What it talks to

Plain httpx. No openai SDK dependency — the CLI hits admin endpoints too (/admin/api-keys), so the marginal value of pulling in the full SDK just for /v1/chat/completions wasn't worth the dependency footprint. The HTTP code in sirb_cli/client.py is short enough to lift into a user's own integration if they want a starting point.

Releasing

The CLI is published to PyPI via the GitHub Actions workflow at .github/workflows/publish-cli.yml, triggered by pushing a cli-v<version> tag:

# bump cli/pyproject.toml version first, commit, then:
git tag cli-v0.1.2
git push origin cli-v0.1.2

The workflow asserts the tag version matches pyproject.toml, builds sdist and wheel, runs twine check, and publishes via Trusted Publishing (OIDC) — no PyPI tokens stored as secrets.

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

sirb-0.7.2.tar.gz (73.1 kB view details)

Uploaded Source

Built Distribution

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

sirb-0.7.2-py3-none-any.whl (74.1 kB view details)

Uploaded Python 3

File details

Details for the file sirb-0.7.2.tar.gz.

File metadata

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

File hashes

Hashes for sirb-0.7.2.tar.gz
Algorithm Hash digest
SHA256 583380f1ca51653e89543fafdd9b67f4e6f3ae30aeac9cace1c3b1bf8c7b0ff7
MD5 b3bbafae4be504a92e3585fb4f603ca5
BLAKE2b-256 9ae918f45fd209b565d992901a65808b95b69e417e92345d4d813e3cdfabd628

See more details on using hashes here.

Provenance

The following attestation bundles were made for sirb-0.7.2.tar.gz:

Publisher: publish-cli.yml on ammarwa/SIRB

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

File details

Details for the file sirb-0.7.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sirb-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71a499800c4db12bac624a7bf107c515acbe920aa43e04f5a1e88ebabc261ff9
MD5 5f3523094e0cac0bc9b488cbbc409f63
BLAKE2b-256 cbf293c87991c67fbb3e3292338410c6081dfde3e1a32a4e0ca9700814f10230

See more details on using hashes here.

Provenance

The following attestation bundles were made for sirb-0.7.2-py3-none-any.whl:

Publisher: publish-cli.yml on ammarwa/SIRB

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