Documentation Index
Fetch the complete documentation index at: https://docs.driftless.icu/llms.txt
Use this file to discover all available pages before exploring further.
Install
Authenticate
Rundriftless login to open your browser to the Driftless dashboard, where you can copy your API key:
Initialize a repo
driftless init scans the current repository, uploads a baseline to Driftless Cloud, and installs the agent skill (AGENTS.md + CLAUDE.md) so agents automatically load context before editing. See Agent Setup for details.
Set
DRIFTLESS_API_KEY for non-interactive environments. Set DRIFTLESS_API_URL only when targeting staging or a local API.Config File
The CLI stores its state in~/.driftless/config.json:
Command reference
| Command | Flags | Description | Example |
|---|---|---|---|
login | --key <key>, --url <url> | Authenticate with API key | driftless login --key drift_xxx |
init | --src <path>, --framework <fw>, --suggest | Scan repo, upload baseline, install skill | driftless init --src apps/api --suggest |
doctor | --json | 8 health checks | driftless doctor |
install-skill | none | Install AGENTS.md + CLAUDE.md | driftless install-skill |
Global flags
| Flag | Description |
|---|---|
--version / -v | Print version |
--help / -h | Full help |
<cmd> --help | Command-specific help |
Environment Variables
Environment Variables
| Variable | Description |
|---|---|
DRIFTLESS_API_KEY | API key (wins over config file) |
DRIFTLESS_API_URL | API server URL (default: https://api.driftless.icu/api/v1) |
DRIFTLESS_MAX_FILE_BYTES | Per-file scan cap for the scanner |