Menu
weird keys
Manage API keys for scripts and agents.
weird keys [flags]API keys let scripts and agents act on your account within the scopes you choose. A key is shown once, when it's created; it never expires and can't be edited — make a new one and revoke the old one instead. At most 20 keys can be active.
For an AI agent, prefer weird mcp setup: it makes a key with exactly the scopes the agent's tools need.
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
Subcommands: create, list, revoke.
weird keys create#
Create an API key (shown once).
weird keys create [flags]Creates an API key with the scopes you name (repeat --scope, or give a comma-separated list); in a terminal without --scope you are shown the list and asked. The key is printed once — copy it now. Creating a key needs your authenticator; a key with a sensitive scope always asks for a fresh code, sent with the request.
Products (wildcards cover these):
credits:read read the credit balance, the credit history, the statement, the credit charges and the promotional credit
dns:read read DNS zones, their records, events, DNSSEC and exports
dns:write create, change, import and delete DNS zones and records (charged)
domains:read read registered domains, their availability and changes of holder
domains:write register, renew, transfer and change domains: nameservers, registrant details, renewal, hosting (charged)
ipfs:read read stored content, uploads, pins, gateway domains, path maps, IPNS names and the storage status
ipfs:write enable storage, upload, pin and delete content, change its copies, and manage gateway domains, path maps and IPNS names (billed)
names:read read the free names of the account, the bases they are claimed under and whether a name is free
names:write claim and release free names (the name is free; the site behind it is billed as storage)
p2p:read read p2p apps and their domains
p2p:write create, change and delete p2p apps and their domains, and mint their credentials (billed)
stats:read read the traffic statistics of the account's sites and pins (daily summaries, top pages, errors and, where switched on, detailed statistics), export them and read which sites have detailed statistics on
tunnels:read read tunnels
tunnels:write create, change and delete tunnels (billed by the hour)
vps:read read servers, volumes, snapshots, one-click apps, SSH keys, availability, limits and activity
vps:write create, power, resize and delete servers, volumes, snapshots and app deployments, and manage SSH keys (billed by the hour)Products granted only by naming them (no wildcard covers these, not even *):
stats:write switch detailed traffic statistics on or off for the account's sites (billed by the hour while on; switching on makes you the controller of your visitors' data); granted only by naming it: no wildcard covers itThe account, money and access (never covered by a wildcard):
! account:export ask for and download a copy of all the data kept about the account, personal details included (it produces a copy of the account's data; it changes nothing)
account:read read the account, its sessions, personal profile, linked email addresses and closing request
! account:write change the personal profile and the email address, link addresses, end sessions and close the account
api-keys:read list the account's API keys
! api-keys:write create and revoke API keys
billing:read read billing profiles, top-ups and invoices
! billing:write change billing profiles and start top-ups (payments)
grants:read read the access the account gave to other accounts on its domains, and the access given to it
! grants:write give other accounts access to the account's domains, change or end it, and accept, decline or leave access given to the account
legal:read read which terms of service and privacy notice the account accepted
! legal:write accept the terms of service and privacy notice for the account
notifications:read read the account's notifications and which kinds of email it receives
notifications:write mark notifications read and choose which kinds of email the account receives
oauth:read list the applications the account authorized
oauth:write revoke an application's access
referrals:read read the referral programme, the gifts sent and received and their rewards
! referrals:write buy, claim, renew and take back credit gifts
security:read read whether a second factor is enrolled
! security:write enrol or remove the second factor
support:read read the account's support tickets
support:write open support tickets and reply to them
! vps-secrets:read open server consoles and reveal one-click app passwords
vps-transfers:read read the transfers of servers, volumes and snapshots offered to and by the account
! vps-transfers:write offer, accept, decline and cancel transfers of servers, volumes and snapshots between accounts
withdrawals:read read the top-ups that may still be withdrawn from, what withdrawing would refund, and the account's refunds
! withdrawals:write withdraw from a top-up: its unused credit is removed and refunded to the payment it was made withWildcards:
* every product scope (credits, ipfs, stats, dns, domains, names, vps, tunnels, p2p), read and write, except stats:write, which is granted only by naming it
*:* the same as `*`
*:read every product scope's read access
*:write every product scope's write access, except stats:write
<area>:* both accesses of one product area, such as `vps:*` (`stats:*` covers stats:read only)stats:write is granted only by naming it: a wildcard (*, *:write, <area>:*) never includes it.
! = sensitive: a key holding it can change who controls the account, spend or move its money or resources, or read secrets; creating it needs a fresh authenticator code.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--name | string | a name to recognise the key by (required) | |
--save | bool | also store the key as this machine's api_key | |
--scope | stringSlice | scope to grant (repeatable or comma-separated) |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
Calls: createApiKey.
weird keys list#
List your API keys (never their secrets).
weird keys list [flags]| Flag | Type | Default | Meaning |
|---|---|---|---|
--all | bool | include revoked keys |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
Calls: listApiKeys.
weird keys revoke#
Revoke an API key (irreversible).
weird keys revoke <id> [flags]Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
Calls: revokeApiKey.
This page is generated from the weird CLI; it changes when the CLI does.