withoneai/cli

Every app, from the terminal. A CLI built for agents to run actions, build flows, sync data and receive webhooks.

What it is

One CLI is a command-line tool that gives AI agents authenticated access to 1,000+ third-party platforms (Gmail, Slack, Shopify, HubSpot, Stripe, Notion, and more) through a single interface. It's published on npm as @withone/cli and invoked with the one command.

Problem it solves

Normally, connecting an AI agent to an external API means managing API keys, building OAuth flows, and memorizing request formats for each platform. One CLI removes all three: connect a platform once, and your agent can search for actions, read documentation, and execute API calls in seconds.

How it works

The CLI sits between your AI agent and the platforms:

Your AI Agent → One CLI → One API (api.withone.ai/v1/passthrough) → Gmail / Slack / Shopify / ...

Every API call routes through One's passthrough proxy. One injects the correct credentials, handles rate limiting, and normalizes responses. You never see or manage raw OAuth tokens — a connection key is all you need.

Core workflow (4 commands)

one add gmail                          # 1. Connect a platform via OAuth
one list                               # 2. See connections and their keys
one actions find gmail "send an email" # 3. Find the action, with docs
one actions execute gmail <actionId> <connectionKey> -d '{...}'  # 4. Execute it

Key features

  • Action finder — one actions find <platform> "<intent>" returns the right action with full documentation (parameters, validation rules, request/response structure, quirks). Supports up to 10 platform/intent pairs in one call, plus a --task flag describing the whole job.
  • Action execution — one actions execute runs API calls with JSON body, path variables, query params, headers, form data, dry-run mode, mock mode, and response saving to file. Validates required parameters against the action schema before executing.
  • Multi-step flows — Chain actions across platforms into reusable workflows stored in .one/flows/<key>/flow.json. Supports conditions, loops, while loops, parallel steps, transforms, sub-flows, pagination, bash steps, and external .mjs code modules.
  • Parallel execution — Run multiple actions concurrently with --parallel, separating each with --. Results collected via Promise.allSettled (one failure doesn't stop the rest).
  • Local caching — Action documentation is cached locally so repeated reads serve instantly from disk; one cache manages the cache.
  • Access control — Each connection carries an access field describing what actions the key may run (full, read-only, custom action lists, etc.). Local settings can only lower what the server allows.

Installation

npx @withone/cli@latest init   # one-shot
# or globally:
npm install -g @withone/cli
one init

one init walks through setup: authenticate via browser or API key, pick your AI agents, and the MCP server installs automatically. Supports Claude Code, Claude Desktop, Cursor, Windsurf, Codex, and Kiro.

Global vs. project scope — Setup can live globally (~/.one/config.json) or per-project (~/.one/projects/<slug>/config.json, stored under home so secrets never hit git). Project config takes precedence when present.

Security notes

  • Node version requirement: Requires Node.js 22.23.4+, 24.22.1+, or 26.12.1+. Older versions trust compromised CA certificates (October 2026), so a network attacker could intercept traffic and steal your API key. The CLI refuses to run on those versions and prints the update command. Node 18, 20, 23, 25 are end-of-life and never got the fix. An escape hatch (ONE_ALLOW_UNPATCHED_NODE=1) runs anyway with a warning on every run.
  • Transparent consent: The browser consent page names the key and tags it with install details (scope, project path, machine, OS user, CLI version, harnesses, device ID). The terminal prints exactly what will be sent before the browser opens. Keys can be revoked from Settings → API keys.
  • Environment overrides: ONE_APP_URL and ONE_API_BASE can point at local dev servers; they apply only to the current process and are never written to config.

Other commands

  • one platforms — browse all 1,000+ platforms, filter by category, JSON output.
  • one connection delete <key> — remove a connection (with confirmation; --force skips it).
  • one login / one logout — browser-based authentication and credential clearing.
  • one config path — show which config is active and the resolution order.
  • one guide flows — full reference for the flows feature.

Project status

The README presents the tool as production-ready with a live website, docs, dashboard, changelog, and social media presence. It's actively maintained with version badges on npm.

Related

  • Project
  • Project
  • Project
  • Dispatch
  • Project