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.mdin 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
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 sirb-0.1.18.tar.gz.
File metadata
- Download URL: sirb-0.1.18.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8222bb765423e83201197ebbefba4c4c399529462ca915f40a8ae59bd9110c9
|
|
| MD5 |
db38e8d2765afd778a300305ab885751
|
|
| BLAKE2b-256 |
d700a73f88d6f44cee2eb74a81fd3309e8d84e3c04a1146e5973ff9469ba7af2
|
Provenance
The following attestation bundles were made for sirb-0.1.18.tar.gz:
Publisher:
publish-cli.yml on ammarwa/SIRB
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sirb-0.1.18.tar.gz -
Subject digest:
c8222bb765423e83201197ebbefba4c4c399529462ca915f40a8ae59bd9110c9 - Sigstore transparency entry: 1549882864
- Sigstore integration time:
-
Permalink:
ammarwa/SIRB@840881f96541af64124c22765344dff7b41bc653 -
Branch / Tag:
refs/tags/cli-v0.1.18 - Owner: https://github.com/ammarwa
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@840881f96541af64124c22765344dff7b41bc653 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sirb-0.1.18-py3-none-any.whl.
File metadata
- Download URL: sirb-0.1.18-py3-none-any.whl
- Upload date:
- Size: 47.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b66d5f6e2c138195210c62c005d02235532f22b480bc66b34501b553c96b71f
|
|
| MD5 |
66b2e8741ffdd9966594ad26fb66ef02
|
|
| BLAKE2b-256 |
541f91e3379f2e077458b5aa4b5081590f153f8d3ae7a71424884f4129f897c3
|
Provenance
The following attestation bundles were made for sirb-0.1.18-py3-none-any.whl:
Publisher:
publish-cli.yml on ammarwa/SIRB
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sirb-0.1.18-py3-none-any.whl -
Subject digest:
5b66d5f6e2c138195210c62c005d02235532f22b480bc66b34501b553c96b71f - Sigstore transparency entry: 1549882902
- Sigstore integration time:
-
Permalink:
ammarwa/SIRB@840881f96541af64124c22765344dff7b41bc653 -
Branch / Tag:
refs/tags/cli-v0.1.18 - Owner: https://github.com/ammarwa
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@840881f96541af64124c22765344dff7b41bc653 -
Trigger Event:
push
-
Statement type: