Dwellir CLI (dwellir) gives you terminal access to core Dwellir dashboard workflows:
- authenticate and manage profiles
- discover blockchain endpoints
- create and manage API keys
- inspect usage analytics and error logs
- view account and subscription details
It is designed for both humans and agents, with consistent structured output on every command.
brew tap dwellir-public/homebrew-tap
brew install dwellir
dwellir version --jsonUpgrade later:
brew update
brew upgrade dwelliryay -S dwellir-cli-bin
dwellir version --jsoncurl -fsSL https://raw.githubusercontent.com/dwellir-public/cli/main/scripts/install.sh | shNote: this requires published GitHub releases.
git clone git@github.com:dwellir-public/cli.git
cd cli
make build
./bin/dwellir --helpgo install github.com/dwellir-public/cli/cmd/dwellir@latestBrowser flow:
dwellir auth loginHeadless/CI flow:
dwellir auth login --token <CLI_TOKEN>You can also set a token directly:
export DWELLIR_TOKEN=<CLI_TOKEN>dwellir endpoints list
dwellir endpoints search ethereum --protocol https
dwellir endpoints get base--protocol accepts https, wss, and grpc. HTTPS and WSS URLs hold the API key in the path.
A gRPC endpoint shows the dial target <host>:443, which holds no key.
A gRPC client connects with TLS and sends the key in the x-api-key metadata header.
dwellir docs search authentication
dwellir docs get getting-started
dwellir docs get https://www.dwellir.com/docs/hyperliquid/historical-datadwellir keys list
dwellir keys create --name ci-key --daily-quota 100000
dwellir keys copy ci-key
dwellir keys env ci-key
dwellir keys disable ci-key
dwellir keys rotate ci-key
dwellir keys delete ci-key --yesThe CLI never prints a full API key. Every output format shows keys masked, for example 9f1c****6789.
Select a key by name, by masked value, or by full value.
To use a key, copy it to the clipboard with keys copy, or write it to .env with keys env or project setup.
keys copy uses pbcopy on macOS, clip.exe on Windows and WSL, wl-copy on Wayland, xclip or xsel on X11, and termux-clipboard-set on Termux.
Over SSH or in CI there is no clipboard, so use keys env.
keys rotate gives a key a new value, for example after a leak. The old value stops working at once.
The key keeps its name, quotas, enabled state and IP whitelists.
Rotating needs confirmation: pass --yes, or pass --human in a terminal to be asked first. Without either, the command rotates nothing.
After rotating, run keys copy or keys env <name> --replace to use the new value.
keys delete removes a key. Deleting cannot be undone, and every application that uses the key loses access at once.
Deleting needs confirmation: pass --yes, or pass --human in a terminal to be asked first. Without either, the command deletes nothing.
dwellir whitelists list
dwellir whitelists create --name office --ip 203.0.113.10 --ip 2001:db8::5 --key ci-key
dwellir whitelists create --name everyone --ip 198.51.100.7 --all-keys
dwellir whitelists assign office deploy-key
dwellir whitelists unassign office deploy-key
dwellir whitelists update office --ip 203.0.113.10 --ip 203.0.113.11
dwellir whitelists disable office
dwellir whitelists enable office
dwellir whitelists delete office --yesAn enabled IP whitelist limits its API keys to the listed addresses. Requests that use those keys from any other address fail.
A whitelist applies to every key (--all-keys, which includes keys created later) or to the keys assigned to it.
Select a whitelist by ID or by name, and a key by name or masked value. whitelist also works as the command name.
--iptakes single addresses only, as in the dashboard. IPv4 addresses become/32and IPv6 addresses become/128. Ranges such as/24are rejected.create --keycreates the whitelist disabled, assigns each key, then enables it. If a step fails, the error lists the commands that finish the setup. Running them again is safe.update --ipreplaces every address.update --all-keys=falsemakes an account-wide whitelist restrict only its assigned keys. Assign those keys first, so they stay restricted without a gap.deleteneeds confirmation: pass--yes, or pass--humanin a terminal to be asked first. Without either, the command deletes nothing.- Every write needs a token with the
read-writescope, whichdwellir auth loginrequests. A token with a lower scope gets aforbiddenerror (exit code 2).
dwellir usage summary
dwellir usage history --interval day
dwellir logs errors --status-code 429 --limit 100logs errors returns meta.has_more and meta.next_cursor. Pass the cursor with --cursor to read the next page. Log rows show each key masked, with its name. Filter by key name with --api-key on usage and --key on logs.
Top-level commands:
dwellir auth— login/logout/status/tokendwellir docs— list/search/get public docs pages as markdowndwellir endpoints— list/search/get chains and networksdwellir keys— list/create/update/delete/rotate/enable/disable API keys; copy/env to use onedwellir whitelists— list/create/update/enable/disable/assign/unassign/delete IP whitelists for API keysdwellir usage— summary/history/rps analyticsdwellir logs— errors/stats/facets with filtersdwellir account— info/subscriptiondwellir config— set/get/list CLI configdwellir profiles— list/current/bind/unbind profile contextdwellir doctor— diagnose auth/profile/output statedwellir feedback— send feedback to the Dwellir team (--humanasks for each field)dwellir version— build/version metadatadwellir update— self-update from GitHub releases
For full command help:
dwellir --help
dwellir <command> --helpdwellir status reads the public status API at https://status.dwellir.com. It needs no login.
dwellir status # summary plus endpoints that are not operational
dwellir status --all # every endpoint
dwellir status --chain base --network ethereum/mainnet
dwellir status components # valid --chain, --network, and --endpoint values
dwellir status history --since 24h --status open
dwellir status uptime --chain ethereum --range 30d
dwellir status feed --chain base --slack # prints "/feed subscribe <feed URL>"
dwellir status subscribe --url https://hooks.slack.com/services/T/B/X --chain base --min-severity outage
dwellir status unsubscribe 'https://status.dwellir.com/unsubscribe?token=...'--chaintakes a chain slug,--networktakes<chain>/<network>, and--endpointtakes an FQDN or an endpoint URL.- Repeat a filter flag or separate values with commas. An endpoint matches when any value matches.
status feedchecks filter values againststatus componentsand fails on unknown values.--no-validateskips the check.status subscribeprints the signing secret and the unsubscribe URL once. Store both.- Status commands exit
3when the API returns HTTP 404 or no subscription matches, and4on invalid input or HTTP 400.
Every command supports:
--human(default): readable output--json: structured machine-readable output--toon: TOON output (JSON-compatible shape)
Example:
dwellir keys list --jsonJSON responses use a common envelope:
{
"ok": true,
"data": {},
"meta": {
"command": "keys.list",
"timestamp": "..."
}
}Errors return ok: false and a non-zero exit code.
Auto-detected non-interactive/agent mode (for example non-TTY runs and environments like Codex/Claude agents) defaults to TOON when no explicit output config is present, even if config.json exists for unrelated settings.
Set DWELLIR_AGENT=1 to force agent-mode auto selection, or DWELLIR_AGENT=0 to disable agent detection for the current shell.
JSON remains supported and is recommended for strict machine pipelines (for example heavy jq-first shell automation).
Recent local benchmark runs (Codex + Claude, JSON vs TOON) showed equal task success with fewer tool calls and lower output-token footprint in TOON mode. See Agent Output Benchmark (2026-03-03). For TOON upstream guidance and broader published benchmarks, see:
- https://github.com/toon-format/toon/tree/main/packages/toon#when-not-to-use-toon
- https://github.com/toon-format/toon/tree/main/packages/toon#benchmarks
Config is stored in:
~/.config/dwellir/config.json~/.config/dwellir/profiles/<name>.json
Per-project profile binding is supported via .dwellir.json:
{ "profile": "work" }dwellir config list
dwellir config set output json
dwellir config set output toon
dwellir config set default_profile work
dwellir config get output
dwellir profiles list
dwellir profiles current
dwellir profiles bind work
dwellir profiles unbind
dwellir doctor
dwellir doctor --verify-apiDWELLIR_TOKEN--tokenflag- Resolved profile token (from profile resolution below)
--profileDWELLIR_PROFILE- nearest
.dwellir.json default_profilein configdefault
DWELLIR_TOKEN— explicit auth token overrideDWELLIR_PROFILE— default profile overrideDWELLIR_AGENT— force/disable agent-environment detection (1or0)DWELLIR_CONFIG_DIR— custom config directoryDWELLIR_API_URL— override API base URL (default:https://dashboard.dwellir.com/marly-api)DWELLIR_DASHBOARD_URL— override dashboard URL for browser authDWELLIR_DOCS_BASE_URL— override docs base URL (default:https://www.dwellir.com/docs)DWELLIR_DOCS_INDEX_URL— override docs index URL (default:<docs-base>/llms.txt)DWELLIR_POSTHOG_KEY— override PostHog project API key for telemetryDWELLIR_POSTHOG_HOST— override PostHog ingestion host (defaults tohttps://eu.i.posthog.com; useful for self-hosted PostHog)DWELLIR_STATUS_URL— override the status API base URL (default:https://status.dwellir.com). The--status-urlflag takes precedence.DWELLIR_ADDONS— enable the in-progressdwellir addonscommands (1or0, default0). Off by default and unsupported: the surface is incomplete and depends on API changes that have not shipped.dwellir doctorreports the resolved state.
Telemetry runs only against the production dashboard or Marly API. Custom and staging API URLs disable telemetry.
Organization grouping uses the backend organization_id; cached Outseta IDs and names are never used as group keys.
make build
make test
make test-e2e
make lint
make checkCore paths:
cmd/dwellir/— entrypointinternal/cli/— Cobra commandsinternal/api/— API client and domain APIsinternal/auth/— token resolution and login flowinternal/config/— config/profile managementinternal/output/— formatter and envelopeinternal/telemetry/— PostHog integrationtest/e2e/— end-to-end tests
- Version source of truth:
VERSION(SemVer, e.g.0.1.0). - Every PR merged to
mainmust bumpVERSION. - A merge to
mainautomatically:- creates/pushes
v<VERSION>tag - runs GoReleaser on that tag
- publishes GitHub release artifacts
- creates/pushes