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 | sh

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

VariableMeaning
WEIRD_INSTALL_VERSIONa version to install instead of the latest, e.g. WEIRD_INSTALL_VERSION=v1.2.3
WEIRD_REQUIRE_SIGNATURE1 refuses to install unless the release signature is checked (it needs minisign)
WEIRD_INSTALL_SHA256the archive's SHA-256 you expect, copied from somewhere else than the download host; any other archive is refused
WEIRD_INSTALL_DIRthe 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 sh

macOS 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:

AddressWhat it holds
https://download.weird.ro/weird-cli/latest/manifest.jsonthe 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.txt lists the archive exactly once and the archive's SHA-256 matches it (it needs sha256sum or shasum). checksums.txt covers every file of the release, the installer and the package included.
  • Signature. checksums.txt.minisig is a minisign signature over checksums.txt by the weird release key, whose secret half never leaves weird's operator. When minisign is installed the installer checks it and refuses on a mismatch; without minisign it prints the key it expected, and WEIRD_REQUIRE_SIGNATURE=1 refuses instead. weird update always checks the signature, with the key built into the CLI.
  • Your own value. WEIRD_INSTALL_SHA256 refuses 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.txt

On 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 step

Credits: 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.

VariableMeaning
WEIRD_API_URLthe API's address (default https://api.weird.ro)
WEIRD_API_KEYan API key for the CLI (instead of the stored session)
WEIRD_MCP_API_KEYan API key for weird mcp when weird mcp setup has not made one
WEIRD_MCP_TOOLSthe default of weird mcp --tools
WEIRD_CONFIG_DIRthe config directory (default ~/.config/weird)
WEIRD_NO_AUTO_UPDATEany 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.

FlagTypeDefaultMeaning
--api-keystringAPI key to use (overrides WEIRD_API_KEY and the stored session)
--help, -hboolhelp for weird
--idempotency-keystringkey for this command's charged create: run it again with the same key and it is never created or billed twice
--jsonboolprint machine-readable JSON (errors too, on stderr)
--langstringlanguage of the texts you accept, ro or en (default: your account's language, see weird account language)
--no-inputboolnever prompt; fail instead (for scripts/CI)
--quiet, -qboolonly print essential output
--yes, -yboolanswer 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.

CodeMeaning
0success
1anything not listed below
2bad flags or arguments, or input the API rejected (400/422)
3not signed in, or the credential was refused (401)
4the 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
5the thing named does not exist (404)
6not enough credits (402)
7conflicts with the current state (409/412)
8too many requests; retry later (429)
9the service or the network is unavailable (5xx, unreachable)
10a confirmation or input was needed but could not be asked (--no-input, no terminal)
11this build lacks an address (WEIRD_API_URL / WEIRD_DOWNLOAD_BASE)

Commands#

CommandWhat it does
weird abuseReport illegal content or abuse on weird (no account needed)
weird accountYour account: who it is, and closing it
weird agentThe background helper that keeps your tunnels connected
weird billingBilling profiles: the details printed on your invoices
weird completionGenerate the autocompletion script for the specified shell
weird creditsYour prepaid credits: balance, history, credit charges, top-ups
weird deviceApprove or refuse a sign-in started on another device
weird dnsDNS zones and records hosted with weird
weird domainsCheck, register, renew, transfer and share domains
weird emailsYour login address and the other addresses you proved are yours
weird grantsAccess other accounts shared with you on their domains
weird helpGuides to each area (first-site, credits, domains, dns, storage, sites, names, stats, tunnels, p2p, servers, agents), or help for a command
weird invoicesYour invoices: list, show, download the PDF
weird keysManage API keys for scripts and agents
weird legalThe terms, the privacy notice and the data processing agreement: read them, see what you accepted, accept
weird loginSign this terminal in to your weird account
weird logoutSign this terminal out
weird mcpRun weird as an MCP server for AI agents (stdio)
weird namesFree names: put a site from your storage on a name under weird's own domains
weird notificationsMessages from weird about your account, and which emails you get
weird oauthApplications you allowed to sign in with your weird account
weird p2pP2P apps: signaling, relay, TURN and an offline mailbox for your apps
weird profileYour details as a domain holder (name, address, phone, ID number)
weird referralsGift credits to someone, and the rewards you earn for it
weird securityYour authenticator app (second factor)
weird serversCloud servers, volumes, snapshots and one-click apps
weird sessionsList the places your account is signed in
weird signupCreate a weird account
weird statsTraffic statistics of your sites: daily summary, top pages, opt-in detail
weird statusYour account at a glance: credits, terms, authenticator, what runs and the credits it spends per hour
weird step-upProve your second factor for the next 15 minutes
weird storageStore files and folders, download them, serve them at your hostnames
weird supportTalk to weird's team: your support tickets
weird termsRead and accept the terms of service and privacy notice
weird tunnelPut something running on this computer on the internet, at your own hostname, with HTTPS
weird tunnelsManage your HTTPS tunnels
weird updateUpdate weird to the latest version
weird versionShow the weird CLI version
weird whoamiShow who this terminal is signed in as