Skip to content

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.

On macOS or Linux (amd64 or arm64):

Terminal window
curl -fsSL https://siema-ai.pl/install.sh | sh

The 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.

Terminal window
siema signup # new account: email, password, then confirm the email
siema login # existing account: approve the login in your browser
siema orgs create acme # an organisation for your keys and credit
siema keys create laptop > key.txt

siema 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.

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.

  • 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: 0 success, 1 error, 2 wrong usage, 3 not logged in.
  • Commands that ask for confirmation need --yes when there is no terminal.

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.