Command-line tool
siema does from the terminal what the console does in
the browser: sign up, log in, create API keys, check usage and balance, top up, file a
help request, and set up coding agents. It is meant for you and for the coding agent
working for you. Messages are in Polish by default; add --lang en or set
SIEMA_LANG=en for English.
Install
Section titled “Install”On macOS or Linux (amd64 or arm64):
curl -fsSL https://siema-ai.pl/install.sh | shThe script downloads the binary for your system from the
latest release, checks it against
the release’s SHA256SUMS and installs it as ~/.local/bin/siema. If that directory is
not on your PATH, the script tells you how to add it. Set SIEMA_INSTALL_DIR to install
elsewhere, or SIEMA_VERSION=cli-v0.3.0 for a specific release.
To install by hand, download siema-<os>-<arch> and SHA256SUMS from the release, check
the checksum (shasum -a 256 -c SHA256SUMS --ignore-missing), make it executable and put
it on your PATH as siema.
Run the same command again to update. siema --version prints the installed version.
First steps
Section titled “First steps”siema signup # new account: email, password, then confirm the emailsiema login # existing account: approve the login in your browsersiema orgs create acme # an organisation for your keys and creditsiema keys create laptop > key.txtsiema keys create prints the key alone on standard output, once, so the file holds just
the key. Put it in SIEMA_API_KEY and never commit it. Then follow the
quickstart from step 2.
New accounts start at a zero balance; see billing for how to top up.
Commands
Section titled “Commands”| Command | What it does |
|---|---|
siema whoami |
Your account and organisations; the current one is marked *. |
siema orgs list, siema orgs use <name> |
List organisations and pick the current one. |
siema keys list, create <name>, revoke <id> |
Manage the organisation’s API keys. |
siema models |
Models with their context, limits and prices in PLN per million tokens. |
siema usage, siema usage events |
Requests, tokens and cost this month (--from, --to, --daily), or the latest requests. |
siema balance, siema ledger, siema payments |
Your balance, the credit history and top-up payments. |
siema billing profile, profile set, transfer |
The company details for VAT invoices, and the bank details for a transfer top-up. |
siema topup <PLN> |
A card top-up, when card payments are available. |
siema ticket new, list, show, reply |
Help requests from the terminal. |
siema init |
Downloads the instructions for coding agents as SIEMA.md. |
siema opencode |
Sets up opencode to use siema’s models with a new key. |
siema hermes |
Sets up Hermes Agent to use siema’s models with a new key. |
siema logout |
Ends the session on this machine. |
siema help <command> explains each command and its flags. --org <name> runs a command
for another of your organisations.
Scripts and coding agents
Section titled “Scripts and coding agents”- Every command that reads or creates something takes
--json. Amounts in JSON are micro-PLN (1 PLN = 1 000 000). - Results go to standard output, messages and prompts to standard error.
- Exit codes:
0success,1error,2wrong usage,3not logged in. - Commands that ask for confirmation need
--yeswhen there is no terminal.
Where it keeps your session
Section titled “Where it keeps your session”The login session is stored in ~/.config/siema/credentials.json (or under
$XDG_CONFIG_HOME), readable only by you. siema logout ends the session and removes it.
The session is never printed, not even with --json. To uninstall, run siema logout and
delete the siema binary.