Dots CLI
Install, authenticate, and use the Dots CLI safely from a terminal or AI agent.
The Dots CLI (dots) provides friendly commands for common Dots resources and
access to every operation in the documented Dots API.
Install
On macOS or Linux, install the latest release:
curl -fsSL https://github.com/Send-Dots/dots-cli/releases/latest/download/install.sh | shThe installer places dots in $HOME/.local/bin by default and verifies the
download against the release checksums. You can also install the CLI through
npm on macOS, Linux, or Windows:
npm install --global @usedots/cliThe npm package requires Node.js 18 or later. Windows users can alternatively
download the Windows ZIP archive from the
latest GitHub release
and extract dots.exe.
Verify the installation:
dots --version
dots --helpChoose an environment
The environment flag is global. Place it before the command so the destination is clear:
| Environment | Command prefix | Use |
|---|---|---|
| Production | dots | Live Dots account and funds |
| Sandbox | dots --sandbox | Development and testing |
Sandbox and production have separate credentials. The CLI uses production when
you omit an environment flag; add --sandbox when you want to test against
Sandbox.
Authenticate
Interactive login
Sign in with your Dots dashboard account:
dots login
dots auth statusThe CLI opens the dashboard so you can choose the App it may access. Paste the five-minute, single-use authorization code into the terminal. The resulting session lasts 72 hours and is stored in your operating system’s credential store. Dots checks your current App membership and role on every request.
To revoke and remove the session:
dots logoutAdd --sandbox before these commands to manage a separate Sandbox session.
API keys for automation
Use API keys for unattended scripts and AI agents. Supply credentials through a secret manager or environment variables:
export DOTS_CLIENT_ID='your-client-id'
export DOTS_API_KEY='your-secret-api-key'
dots doctor --check-apiWhen using organization credentials to act for an App, also set:
export DOTS_APP_ID='your-app-id'In a headless environment, use explicit environment variables instead of a saved login. See API Authentication for information about App and organization keys.
Read-only API keys for agents
When an agent or automation only needs to inspect data, create a named read-only API key from API Management in the Dots dashboard. Configure the CLI with the read-only key’s client ID and API key just like any other API credentials:
export DOTS_CLIENT_ID='your-read-only-client-id'
export DOTS_API_KEY='your-read-only-api-key'
dots --json doctor --check-apiWhen verification succeeds, auth.api_key_mode is read_only. You can also
verify access with a read request:
dots --json transfers list --query limit=1Read-only keys are enforced by the Dots API. Requests that create, update, or
delete resources are rejected with 403 Forbidden, even if a caller bypasses
the CLI’s local safeguards. Use a full-access key only when the automation must
perform writes.
Payout agent credentials
A payout agent uses its own
credential instead of an API key. Supply it through DOTS_AGENT_TOKEN:
export DOTS_AGENT_TOKEN='dots_agent_...'
dots --json doctor --check-apiAn agent calls the same endpoints as its customer, limited to its own agent: it
can read itself, create recipients, and send and read its own payouts and
payout links. It cannot change its rules, funding, or status, and the CLI
refuses to combine the credential with DOTS_TOKEN, DOTS_CLIENT_ID,
DOTS_API_KEY, or DOTS_APP_ID.
Security
- Never put credentials in prompts, source control, command arguments, or custom headers. Prefer environment variables supplied by your secrets manager.
- Preview writes with
--dry-runbefore sending them. Dry runs do not make an API request. - Reuse an idempotency key when retrying a write so the same operation is not performed twice.
- Do not manually supply an
Authorizationheader. The CLI rejects it and applies configured credentials without exposing them in output. - Use
--jsonfor automation. Structured output omits configured credentials, custom header values, and multipart values. Request bodies remain visible in dry-run previews, so do not include credentials or other secrets in them.
Add a local read-only safeguard
For defense in depth, set DOTS_READ_ONLY=1 in addition to using a server-enforced
read-only API key. The CLI then refuses every non-GET/HEAD API request locally
while still allowing dry-run previews:
export DOTS_READ_ONLY=1
dots --json transfers list
dots users create --body-file ./user.json --dry-runIf an agent needs ordinary writes but must not move money, use:
export DOTS_BLOCK_MONEY_MOVEMENT=1
dots users create --body-file ./user.json --dry-runThis guard blocks live requests involving transfers, payouts, payout links, payout batches and requests, payments, payable payments, wallet deposits and withdrawals, organization transfers, payout agent allocations and reclaims, and payouts sent by a payout agent.
Configure these variables outside the agent’s control. A local guard cannot protect a full-access key if the agent can unset or override it. Use a server-enforced read-only API key when writes must never be allowed.
Use with AI agents
Install the CLI’s bundled agent skill interactively:
dots skill installFor non-interactive installation, choose the scope and agent harness explicitly:
dots skill install --project --harness all
dots skill install --global --harness .agentsProject scope installs into the current Git repository. Global scope makes the
skill available across projects. The .agents harness supports Codex,
OpenCode, and OpenClaw; claude and hermes are also available. Current
Hermes releases require global scope.
For reliable agent use:
- Give the agent only the environment it needs and keep the guard variable outside its control.
- Select the intended environment explicitly and use
--jsonwhen reading command output. - Require
--dry-runfor every write. - Review the preview before allowing a live write. All money-moving requests,
including payouts and payout batches, require
--confirmin JSON or non-interactive mode.
Connect to the hosted MCP server
Your AI assistant can connect to Dots at https://mcp.dots.dev/mcp without
installing the CLI. When you add the server, your assistant opens the Dots
dashboard, where you pick the App it can act on. The assistant uses your
dashboard permissions on that App and can’t switch Apps or environments. For
sandbox, use https://mcp.dots.dev/sandbox/mcp. For staging, use
https://mcp.dots.dev/staging/mcp.
The hosted server has the same search_tools, read_doc, and execute_tool
tools as the local MCP server. execute_tool runs
operations for the App you picked.
In Claude Code:
claude mcp add --transport http dots https://mcp.dots.dev/mcpIn Codex:
codex mcp add dots --url https://mcp.dots.dev/mcpIn VS Code, add it to .vscode/mcp.json:
{
"servers": {
"dots": {
"type": "http",
"url": "https://mcp.dots.dev/mcp"
}
}
}In Cursor, add it to .cursor/mcp.json:
{
"mcpServers": {
"dots": {
"url": "https://mcp.dots.dev/mcp"
}
}
}In Claude or ChatGPT, add https://mcp.dots.dev/mcp as a custom connector.
The hosted server runs only some CLI commands. It runs the commands for users,
transfers, transactions, flows, payouts, payout links, payout batches, and
operations, and the read commands for vendors and payables. dots_call only
sends live GET and HEAD requests. Apps, roles, developers, payout agent
commands, dots_request, and file inputs aren’t available. For anything else,
run the CLI as a local MCP server.
Money movement is off unless you check Allow money movement when you
authorize. With it on, the server sends any payout call that includes
confirm: true. It doesn’t check for an earlier dry_run or for your
approval, so tell your assistant to preview with dry_run and wait for you to
approve before it confirms.
At most 16 operations run at once. Each operation times out after 120 seconds.
A timed-out or cancelled payout may still have been submitted. Check its status
before retrying, and supply your own idempotency_key so a retry cannot send
the payout twice. A retried transfer or payout link with the same key returns
the original instead of creating another.
Access expires 30 days after you authorize. To revoke it sooner, open the App’s developer tools in dashboard settings and click Revoke next to the client under Connected MCP clients. Apps on the Core plan don’t have developer tools, so their access lasts until it expires.
To read the docs without signing in, connect to https://mcp.dots.dev/docs
instead. It offers only search_tools and read_doc, so it can’t run
operations.
Run as an MCP server
Agents that support the Model Context Protocol (MCP) can use the CLI as a local
MCP server. dots --mcp communicates over stdio and does not open a network
port. Add it to your MCP client’s configuration:
{
"mcpServers": {
"dots": {
"command": "dots",
"args": ["--sandbox", "--mcp"],
"env": {
"DOTS_READ_ONLY": "1"
}
}
}
}In Claude Code, the equivalent command is:
claude mcp add dots -e DOTS_READ_ONLY=1 -- dots --sandbox --mcpRemove --sandbox for production, and remove DOTS_READ_ONLY only when the
agent needs to write. The environment, credentials, App, and safety variables
are fixed when the server starts. Tool arguments cannot change them.
The server provides three tools:
search_toolssearches CLI operations and these docs by keyword, such assend payout,list users, orwhat is a payout link, and returns one ranked list. Operations include their name, description, input schema, and matchingdotscommand. Docs results include the page path, title, best matching section, and URL. Questions such aswhat is a flowrank docs first. An empty query matches every operation and docs page. Results are capped bylimit, which defaults to 10 and accepts up to 100.read_docreturns a docs page as markdown, such asguides/payout-links, or one API reference operation, such asapi-reference/payout-links/create-payout-link.execute_toolruns an operation by name with arguments that match its schema:
{
"name": "dots_users_list",
"arguments": { "query": ["limit=10"] }
}Because execute_tool can run writes, MCP clients treat it as a write tool. If
your client asks for approval before writes, it will ask for every call,
including reads.
Operations cover the same commands as the CLI, including dots_call and
dots_request for any documented API operation. Skill installation,
configuration, and doctor are not available over MCP.
To sign in without API keys, have the agent run dots_login_start, open the
returned URL, authorize an App, and pass the copied code to
dots_login_exchange. The session is saved in your operating system’s
credential store and is never returned to the agent. In headless environments,
set DOTS_CLIENT_ID and DOTS_API_KEY in the server’s env instead.
MCP applies the same write rules as the CLI. Money-moving operations require
confirm: true for live requests; use dry_run: true to preview first. Live
dots_call and dots_request writes other than GET or HEAD always require
confirm: true and are refused when DOTS_READ_ONLY or
DOTS_BLOCK_MONEY_MOVEMENT is set.
File inputs such as body_file are disabled by default. To allow them, set
DOTS_MCP_FILE_ROOT in the server’s env to an absolute directory path. The
server rejects any file outside that directory.
Each operation times out after 120 seconds. A timed-out or cancelled payout
may still have been submitted. Check its status before retrying, and supply
your own idempotency_key so a retry cannot send the payout twice. A retried
transfer or payout link with the same key returns the original instead of
creating another.
Common workflows
Check configuration
dots doctor --check-api
dots config showconfig show reports only non-secret settings.
Discover commands
Use the CLI’s current help and API catalog instead of relying on memorized syntax:
dots users --help
dots operations list --tag users
dots operations show get-userList and retrieve resources
Friendly commands cover users, transfers, transactions, vendors, flows, payout links, payouts, payout batches, and apps:
dots --json users list --query limit=10
dots --json users get USER_UUID
dots --json transfers get TRANSFER_UUID
dots --json transactions list --query limit=10
dots --json transactions get TRANSACTION_ID
dots --json flows get FLOW_UUID
dots --json apps listUse transfers to inspect a transfer and transactions to inspect the ledger
entries created by transfers and other money movement.
Manage payout batches
List a batch, inspect its processing state, and retrieve its item-level results:
dots --json payout-batches list --query limit=10
dots --json payout-batches get PAYOUT_BATCH_UUID
dots --json payout-batches results PAYOUT_BATCH_UUIDPreview batch creation from a JSON file before submitting it:
dots payout-batches create --body-file ./payout-batch.json --dry-runThe batch preview includes a generated body.idempotency_key. Reuse it with
--idempotency-key on the confirmed command. In JSON or non-interactive mode,
the create command requires --confirm; call and request enforce the same
gate for money-moving endpoints.
Manage vendors and payment methods
Use the accounts-payable vendor commands to list or retrieve vendors and to preview create or delete requests:
dots --json vendors list --query limit=10
dots --json vendors get VENDOR_UUID
dots vendors create --body-file ./vendor.json --dry-run
dots vendors delete VENDOR_UUID --dry-runPayment-method commands are nested under their vendor. Both the vendor ID and payment-method ID are positional arguments where required:
dots --json vendors payment-methods list VENDOR_UUID
dots --json vendors payment-methods get VENDOR_UUID PAYMENT_METHOD_UUID
dots vendors payment-methods create VENDOR_UUID \
--body-file ./payment-method.json \
--dry-run
dots vendors payment-methods delete VENDOR_UUID PAYMENT_METHOD_UUID --dry-runPayment-method previews replace account_number and routing_number values
with [REDACTED]. The CLI does not offer idempotency keys for vendor writes
because these API routes do not support idempotent retries.
Manage team roles
Create custom roles, change team members’ roles, and invite new members.
Commands act on the App’s team by default. Add --organization to act on the
organization’s team instead; that needs an organization API key, and the CLI
leaves out DOTS_APP_ID for these routes. A dots login session can only manage the App’s team,
and only if you are an admin.
dots --json roles list
dots roles create --body '{"name":"Payout operator","actions":["get","create_payout","view_payouts_tab"]}' --dry-run
dots roles update ROLE_UUID --body '{"actions":["get","view_payouts_tab"]}' --dry-run
dots roles delete ROLE_UUID --dry-run
dots --json developers list
dots developers update DEVELOPER_UUID --body '{"custom_role_id":"ROLE_UUID"}' --dry-run
dots developers update DEVELOPER_UUID --body '{"role":"viewer"}' --dry-run
dots developers remove DEVELOPER_UUID --dry-run
dots --json developers invites list --query status=created
dots developers invites create --body '{"email":"jane@example.com","role":"payer"}' --dry-run
dots developers invites cancel INVITE_UUID --dry-run
dots --json roles list --organizationDEVELOPER_UUID is the id returned by developers list. See
Team roles for the rules on custom roles and admins.
Manage payables
List and retrieve payables, or preview creation from JSON:
dots --json payables list --query limit=10
dots --json payables get PAYABLE_UUID
dots payables create --body-file ./payable.json --dry-run
dots payables update PAYABLE_UUID --body-file ./payable-update.json --dry-runCreate a payable directly from a PDF by providing the acting user and file. The CLI constructs the required multipart fields:
dots payables create-from-file \
--acting-user-id ACTING_USER_UUID \
--file ./invoice.pdf \
--dry-runThe payable file endpoint accepts a base64-encoded file in a JSON body. You can also remove the current file:
dots payables upload-file PAYABLE_UUID --body-file ./payable-file.json --dry-run
dots payables delete-file PAYABLE_UUID --dry-runLifecycle actions require a JSON body containing acting_user_id; cancel,
submit, approve, and reject may also include a comment:
dots payables cancel PAYABLE_UUID --body '{"acting_user_id":"ACTING_USER_UUID"}' --dry-run
dots payables submit PAYABLE_UUID --body '{"acting_user_id":"ACTING_USER_UUID"}' --dry-run
dots payables approve PAYABLE_UUID --body '{"acting_user_id":"ACTING_USER_UUID"}' --dry-run
dots payables reject PAYABLE_UUID --body '{"acting_user_id":"ACTING_USER_UUID"}' --dry-run
dots payables pay PAYABLE_UUID --body '{"acting_user_id":"ACTING_USER_UUID"}' --dry-runPaying an approved payable moves money and is blocked when
DOTS_BLOCK_MONEY_MOVEMENT=1. Always review the dry-run preview before sending
a lifecycle write.
Preview a write
Pass request JSON inline or read it from a file:
dots users create --body-file ./user.json --dry-run
dots transfers create --body-file ./transfer.json --dry-runAfter reviewing the preview, remove --dry-run to send the request. For a
money-moving request such as transfers create, also pass --confirm. Scripts
and --json mode cannot submit money-moving requests without it.
Call any documented API operation
When a friendly resource command is not available, discover and call the OpenAPI operation:
dots operations show get-user
dots --json call get-user --path user_id=USER_UUID
dots call create-transfer \
--body-file ./transfer.json \
--dry-runUse --path NAME=VALUE for path parameters, --query NAME=VALUE for query
parameters, and --body or --body-file for JSON request bodies.
Send a payout
Amounts are expressed in cents. First preview the payout:
dots --json payouts send \
--amount-cents 100 \
--user USER_UUID \
--memo "CLI payout" \
--dry-runThe preview includes an automatically generated idempotency key. Copy that key into the approved request:
dots --json payouts send \
--amount-cents 100 \
--user USER_UUID \
--memo "CLI payout" \
--idempotency-key IDEMPOTENCY_UUID \
--confirm--amount-cents 100 sends $1.00. Never add --confirm until the dry-run
preview has been reviewed.
Send payouts as a payout agent
With DOTS_AGENT_TOKEN set, preview the payout, then send it with the
previewed idempotency key:
dots --json agent get
dots --json agent payouts send --amount-cents 2500 --user USER_UUID --dry-run
dots --json agent payouts send \
--amount-cents 2500 \
--user USER_UUID \
--idempotency-key IDEMPOTENCY_UUID \
--confirm
dots --json agent payouts get PAYOUT_UUIDA payout that breaks one of the agent’s rules is rejected with a 422 and an
error code such as payout-agent-paused or payout-agent-insufficient-balance.
After the agent is paused, check each payout’s cancellation. A payout whose
cancellation.status is not_canceled was not stopped; its status shows
whether it completed, failed, or was reversed. A failed or reversed payout
returns its principal to the agent’s balance.
Create payout links as a payout agent
Agents can also create payout links for recipients identified by email, phone, or an existing user ID. Links reserve principal immediately and count against spending caps until claimed, canceled, or expired. Claimed links count for the configured rolling window after creation; cancellation and expiry refund the agent wallet. The recipient must verify the specified email or phone. Fees are charged to the parent app. Pausing an agent prevents claims and cancels its unclaimed links.
dots --json agent payout-links create --body '{"amount":2500,"payee":{"email":"recipient@example.com"},"idempotency_key":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}' --dry-run
dots --json agent payout-links list
dots --json agent payout-links get LINK_UUID
dots --json agent payout-links delete LINK_UUID --confirmUse --confirm instead of --dry-run to create the link. Keep the same
idempotency key, amount, payee, and delivery on retries. Omitting delivery
returns a shareable link; provide delivery.method to send it by email or SMS
to the payee’s own contact. Only the payee can claim the link, so the contact
is taken from the payee and a delivery email or phone number that differs from
it is rejected.
Customers can preapprove an email or phone before signup through
create-payout-agent-approved-recipient. Supply exactly one user_id, email,
or country_code plus phone_number. Remove a contact approval using its id.
Agent credentials cannot modify approvals.
Troubleshooting
dots auth status
dots doctor --check-api
dots payouts send --help- If authentication expired, run
dots loginagain. - If
doctorcannot reach the API, confirm the environment and network. - If an argument is rejected, inspect that exact command with
--help. - If an agent write is refused, check whether
DOTS_READ_ONLYorDOTS_BLOCK_MONEY_MOVEMENTwas intentionally enabled. Do not disable a guard to bypass the refusal.