Choose an account interface
Use one account interface on a given host, not both. Each keeps its own OAuth grant. MCP is the
preferred agent integration because it provides typed tools and keeps API key creation in the
browser; use the CLI when MCP is unavailable.
Install
Install Node.js 22.12 or newer, then install the CLI from npm. Node.js 24 LTS is recommended.Sign in
Capabilities
Run
redpill --help or redpill <command> --help for options.
Automation and confirmations
Human-readable output is the default. Use--json for one complete JSON document on stdout;
diagnostics and errors stay on stderr.
--json and --yes:
--json disables prompts and fails before a mutation unless --yes is present. Use --no-input
or REDPILL_NO_INPUT=1 to disable prompts while retaining human-readable output. OAuth login is
interactive, so an agent should ask the user to run redpill auth login before continuing.
Configuration and credentials
The CLI stores local state in the RedPill configuration directory, following the XDG convention on Unix systems:
Set
REDPILL_CONFIG_HOME to override the directory. config.json contains organization and
workspace defaults. credentials.json contains the OAuth grant and must not be shared or
committed. On Unix systems, the directory is written with mode 0700 and both files with mode
0600; credential updates use atomic replacement.
The CLI does not store RedPill API key secrets. A newly created key is shown once in command
output, so treat that output as a secret. Agents must not run redpill key create because the
secret would enter model context; ask the user to create the key in the
dashboard instead.