Menu
The weird CLI
Every command of the weird command line, with its flags, exit codes and the API operations it calls, generated from the CLI itself.
weird puts a weird account in your terminal: domains, DNS, storage, tunnels, P2P apps and servers. It is the first interface of the API, and it runs the MCP server an AI agent uses. Each command's page below is generated from the CLI's own command tree.
Install#
On macOS or Linux, in a terminal:
curl -fsSL https://download.weird.ro/weird-cli/latest/install.sh | shThe installer picks the build for your system (one universal build for macOS; amd64 or arm64 for Linux), checks it (see how a download is checked) and puts weird in /usr/local/bin, or in ~/.local/bin when that folder is not writable for you (it then says how to add it to your PATH). It installs nothing when any check fails. Settings it reads, each before sh:
| Variable | Meaning |
|---|---|
WEIRD_INSTALL_VERSION | a version to install instead of the latest, e.g. WEIRD_INSTALL_VERSION=v1.2.3 |
WEIRD_REQUIRE_SIGNATURE | 1 refuses to install unless the release signature is checked (it needs minisign) |
WEIRD_INSTALL_SHA256 | the archive's SHA-256 you expect, copied from somewhere else than the download host; any other archive is refused |
WEIRD_INSTALL_DIR | the folder to install into (default /usr/local/bin, else ~/.local/bin) |
For example, to install one version and only with its signature checked:
curl -fsSL https://download.weird.ro/weird-cli/latest/install.sh | WEIRD_INSTALL_VERSION=v1.2.3 WEIRD_REQUIRE_SIGNATURE=1 shmacOS package. weird.pkg is the same CLI as an installer package (ro.weird.cli), signed with weird's Developer ID and notarized by Apple. It installs weird in /usr/local/lib/weird/ with a /usr/local/bin/weird link; the folder is yours, so weird update never needs sudo.
Once installed, weird keeps itself up to date: once a day, after a command, it installs a newer release, with the same checks. weird update does it now; weird update --auto off or WEIRD_NO_AUTO_UPDATE=1 switches it off.
Where the releases are#
Every release is a folder of plain files on weird's download host, and a published folder never changes:
| Address | What it holds |
|---|---|
https://download.weird.ro/weird-cli/latest/manifest.json | the newest release: its version and its files with their sizes |
https://download.weird.ro/weird-cli/<version>/ | one release, e.g. v1.2.3: the archives weird_darwin_all.tar.gz, weird_linux_amd64.tar.gz and weird_linux_arm64.tar.gz, weird.pkg, install.sh, checksums.txt, checksums.txt.minisig and manifest.json |
https://download.weird.ro/weird-cli/latest/<file> | the same file of the newest release |
The installer reads the version once, then takes every file from that version's folder, so a release published meanwhile cannot mix in.
How a download is checked#
- Checksums. The installer installs nothing unless the release's
checksums.txtlists the archive exactly once and the archive's SHA-256 matches it (it needssha256sumorshasum).checksums.txtcovers every file of the release, the installer and the package included. - Signature.
checksums.txt.minisigis a minisign signature overchecksums.txtby the weird release key, whose secret half never leaves weird's operator. Whenminisignis installed the installer checks it and refuses on a mismatch; without minisign it prints the key it expected, andWEIRD_REQUIRE_SIGNATURE=1refuses instead.weird updatealways checks the signature, with the key built into the CLI. - Your own value.
WEIRD_INSTALL_SHA256refuses any archive but the one you name.
The release key. Each release's install.sh carries the public key it checks with (the WEIRD_RELEASE_PUBKEY line), and the key file is published with each release as weird-release.pub (two lines: untrusted comment: minisign public key <KEYID> and the key, starting RW). Keep a copy: a later key that differs from yours means the release was not made by weird. To check a release by hand:
curl -fsSLO https://download.weird.ro/weird-cli/v1.2.3/checksums.txt
curl -fsSLO https://download.weird.ro/weird-cli/v1.2.3/checksums.txt.minisig
curl -fsSLO https://download.weird.ro/weird-cli/v1.2.3/weird_linux_amd64.tar.gz
# weird-release.pub: the copy of the release key you keep
minisign -Vm checksums.txt -p weird-release.pub
sha256sum --check --ignore-missing checksums.txtOn macOS, use shasum -a 256 --check --ignore-missing checksums.txt, and pkgutil --check-signature weird.pkg shows the package's Developer ID.
Getting started#
$ weird signup# create your account (we email you a link)$ weird login# emailed code + authenticator code$ weird terms# read and accept the terms$ weird security enroll# set up your authenticator app$ weird credits# your balance
Run weird with no arguments for the next steps, weird status for your account at a glance, weird help <topic> for a guide to an area, and weird <command> --help for every detail. Shell completion: weird completion bash (or zsh, fish, powershell).
weird — domains, DNS, storage, tunnels, p2p apps and servers, all from your terminal.
Getting started:
weird signup create your account (one time)
weird login sign this terminal in
weird terms read and accept the terms (asked once, and after changes)
weird security enroll set up your authenticator app (needed before spending)
weird credits see your balance (weird credits topup adds some)Everyday:
weird domains check example.ro is a domain free, and its credit charge
weird dns set example.ro www A 192.0.2.10
weird tunnel demo.example.ro 3000 put a local app on the internet, with HTTPS
weird names publish ana ./site a site from your storage on a free name, no domain needed
weird help first-site a first website, on a free name or your own domain, step by stepCredits: everything spends prepaid credits; the only thing you buy is credits (weird credits topup). Reading your products spends a few credits per successful request (a refused or failed call is free); anything else that spends credits, or deletes something, shows how many and asks first.
Using an AI agent? Run weird mcp setup to give it its own limited key.
Which credential it uses#
First match wins: --api-key, the WEIRD_API_KEY variable, the session from weird login, an api_key file in the config directory. Almost every operation accepts an API key within its permissions; the few that need your own session (signing out other sessions, weird step-up, weird device approve, weird mcp setup) always use it. weird mcp never uses your session: it uses the agent's own key made by weird mcp setup.
| Variable | Meaning |
|---|---|
WEIRD_API_URL | the API's address (default https://api.weird.ro) |
WEIRD_API_KEY | an API key for the CLI (instead of the stored session) |
WEIRD_MCP_API_KEY | an API key for weird mcp when weird mcp setup has not made one |
WEIRD_MCP_TOOLS | the default of weird mcp --tools |
WEIRD_CONFIG_DIR | the config directory (default ~/.config/weird) |
WEIRD_NO_AUTO_UPDATE | any value turns automatic updates off |
Money and confirmations#
Anything that costs credits up front, and anything that deletes, says the credit charge (from the list of credit charges) and asks first, defaulting to No; without a terminal, or with --no-input, it fails with exit code 10 unless --yes is given. Reading your products costs a small credit charge per successful request and never asks. Orders that start at once (a top-up; registering, renewing or transferring a domain) also need your acknowledgement, typed as yes; in scripts pass --request-immediate-start and --acknowledge-withdrawal-terms (--yes never stands for them). See how billing works.
Global flags#
Every command takes these.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--api-key | string | API key to use (overrides WEIRD_API_KEY and the stored session) | |
--help, -h | bool | help for weird | |
--idempotency-key | string | key for this command's charged create: run it again with the same key and it is never created or billed twice | |
--json | bool | print machine-readable JSON (errors too, on stderr) | |
--lang | string | language of the texts you accept, ro or en (default: your account's language, see weird account language) | |
--no-input | bool | never prompt; fail instead (for scripts/CI) | |
--quiet, -q | bool | only print essential output | |
--yes, -y | bool | answer yes to confirmation prompts |
Exit codes#
Scripts can branch on them; they are never renumbered. Under --json, an error is also printed on stderr as JSON with its code, message, next_step and exit_code.
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | anything not listed below |
| 2 | bad flags or arguments, or input the API rejected (400/422) |
| 3 | not signed in, or the credential was refused (401) |
| 4 | the account holder must act first: terms, second factor, step-up, profile, key scope (403), a restriction after a review (403 account-suspended, 451), an account too new for a free name, a refused web origin |
| 5 | the thing named does not exist (404) |
| 6 | not enough credits (402) |
| 7 | conflicts with the current state (409/412) |
| 8 | too many requests; retry later (429) |
| 9 | the service or the network is unavailable (5xx, unreachable) |
| 10 | a confirmation or input was needed but could not be asked (--no-input, no terminal) |
| 11 | this build lacks an address (WEIRD_API_URL / WEIRD_DOWNLOAD_BASE) |
Commands#
| Command | What it does |
|---|---|
weird abuse | Report illegal content or abuse on weird (no account needed) |
weird account | Your account: who it is, and closing it |
weird agent | The background helper that keeps your tunnels connected |
weird billing | Billing profiles: the details printed on your invoices |
weird completion | Generate the autocompletion script for the specified shell |
weird credits | Your prepaid credits: balance, history, credit charges, top-ups |
weird device | Approve or refuse a sign-in started on another device |
weird dns | DNS zones and records hosted with weird |
weird domains | Check, register, renew, transfer and share domains |
weird emails | Your login address and the other addresses you proved are yours |
weird grants | Access other accounts shared with you on their domains |
weird help | Guides to each area (first-site, credits, domains, dns, storage, sites, names, stats, tunnels, p2p, servers, agents), or help for a command |
weird invoices | Your invoices: list, show, download the PDF |
weird keys | Manage API keys for scripts and agents |
weird legal | The terms, the privacy notice and the data processing agreement: read them, see what you accepted, accept |
weird login | Sign this terminal in to your weird account |
weird logout | Sign this terminal out |
weird mcp | Run weird as an MCP server for AI agents (stdio) |
weird names | Free names: put a site from your storage on a name under weird's own domains |
weird notifications | Messages from weird about your account, and which emails you get |
weird oauth | Applications you allowed to sign in with your weird account |
weird p2p | P2P apps: signaling, relay, TURN and an offline mailbox for your apps |
weird profile | Your details as a domain holder (name, address, phone, ID number) |
weird referrals | Gift credits to someone, and the rewards you earn for it |
weird security | Your authenticator app (second factor) |
weird servers | Cloud servers, volumes, snapshots and one-click apps |
weird sessions | List the places your account is signed in |
weird signup | Create a weird account |
weird stats | Traffic statistics of your sites: daily summary, top pages, opt-in detail |
weird status | Your account at a glance: credits, terms, authenticator, what runs and the credits it spends per hour |
weird step-up | Prove your second factor for the next 15 minutes |
weird storage | Store files and folders, download them, serve them at your hostnames |
weird support | Talk to weird's team: your support tickets |
weird terms | Read and accept the terms of service and privacy notice |
weird tunnel | Put something running on this computer on the internet, at your own hostname, with HTTPS |
weird tunnels | Manage your HTTPS tunnels |
weird update | Update weird to the latest version |
weird version | Show the weird CLI version |
weird whoami | Show who this terminal is signed in as |