by withoneai
Every app, from the terminal. A CLI built for agents to run actions, build flows, sync data and receive webhooks.
# Add to your Claude Code skills
git clone https://github.com/withoneai/clicli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by withoneai. Every app, from the terminal. A CLI built for agents to run actions, build flows, sync data and receive webhooks. It has 421 GitHub stars.
cli's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/withoneai/cli" and add it to your Claude Code skills directory (see the Installation section above).
cli is primarily written in TypeScript. It is open-source under withoneai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cli against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
The One CLI puts the apps you have connected on One at your agent's command line. One command finds the action a task needs and returns its real API documentation. The next one runs it. One holds the credentials and adds them on its side, which means your agent never sees an OAuth token or a platform API key.
It is built to be driven by an agent and works the same by hand. Add --agent and every command answers in JSON.
Install the One skill, then hand the rest to your agent.
npx skills add withoneai/cli -g
Then send your agent this message.
Use the One skill to set up the One CLI, then run "one onboard"
Your agent installs the CLI and opens your browser, where you sign in and choose what its key can reach. Then it runs one onboard, a three-step script written for an agent, which teaches it the commands and shows it which apps you have connected. Connect a first app with one add gmail, which you approve in your browser.
npx @withone/cli@latest init
one init signs you in through the browser, installs the One skill into the coding agents you pick and offers to connect your first app. To keep one on your path, install it globally.
npm install -g @withone/cli
one init
It needs Node.js 22.23.4+, 24.22.1+ or 26.12.1+. If the global install fails with a permissions error, run each command through npx @withone/cli@latest instead.
Then four commands take you from nothing to a sent email.
# Connect an app. Your browser opens, you approve, and it is connected
one add gmail
# See what you are connected to, and what this key may run on each app
one list
# Find the action for the job, with its documentation
one actions find gmail "send an email" --task "email a hello to a contact"
# Run it
one actions execute gmail <actionId> <connectionKey> \
-d '{"to": "[email protected]", "subject": "Hello", "body": "Sent from my agent"}'
one list gives you the connection key that execute takes.
Platform Status Connection Key Access
─ ──────── ─────────── ────────────────────────────── ───────────
● gmail operational live::gmail::default::abc123 Full access
● slack operational live::slack::default::def456 Read only
● shopify operational live::shopify::default::ghi789 Read & write
Once you are set up by hand, ask your agent to run one onboard and it learns the same way.
Your agent
↓
One CLI
↓
One API checks the access, adds the credentials, records the call
↓
Gmail · Slack · Shopify · HubSpot · Stripe · every other platform
Every call to an app goes through One. One checks the call against what your key may do, adds the credentials for the connection, makes the request and records it. A connection key names a connection. It is not a credential.
Every task follows the same three steps, whatever the platform.
| Step | Command | What it answers |
|---|---|---|
| 1 | one list |
What am I connected to, and what may I run there? |
| 2 | one actions find |
Which action does this, and how do I call it? |
| 3 | one actions execute |
Do it |
Read the documentation find returns before you execute. It holds the required parameters and the platform's quirks.
Find the action for every step of a task in one call, across platforms, then run each one. --dry-run shows the request without sending it, --mock returns an example response, and --parallel runs several actions at once.
one actions find hubspot "find a contact by email" gmail "send an email" \
--task "email a follow-up to a CRM contact"
one actions execute stripe <actionId> <connectionKey> --query-params '{"limit": "10"}'
one actions execute shopify <actionId> <connectionKey> --path-vars '{"order_id": "12345"}' --dry-run
See Connections and Actions in the reference.
A flow is a multi-step workflow written as JSON, saved under .one/flows/. Flows have conditions, loops, parallel steps, transforms, pagination, sub-flows, code and bash steps. A run can be dry-run, stopped after any step, paused, resumed and inspected step by step.
one flow scaffold loop | one flow create my-loop # start from a template, then fill in its actions
one flow validate my-loop
one flow execute my-loop --dry-run # resolve every step without running it
one flow execute my-loop
See Flows in the reference, or run one guide flows for the full schema.
one sync pulls a platform's records into a local Postgres store that starts by itself on first use. Query, search and join them without another API call, keep them fresh on a schedule, and run a command when a record changes. one mem holds your agent's own notes in the same store.
one sync init stripe customers # a profile from the built-in
one sync run stripe # pull the records into memory
one sync query stripe/customers --where 'address.city=SF'
one sync schedule add stripe --every 1h
one mem add note '{"content":"Design review is Thursday"}' --tags work
one mem search "design review"
See Memory and sync in the reference.
one relay receives a platform's webhook events on One and forwards each one to another app's action, a URL or an agent, with no server of your own.
one relay platforms # which platforms can send events
one relay event-types stripe
one relay create --connection-key <key> --create-webhook --event-filters '["customer.created"]'
one relay activate <id> --actions '<json>' # forward each event to an action
See Relay in the reference and the Relay docs.
Connect is One's embeddable authentication. You add it to your product, and your users connect their own apps there. The CLI installs the Connect skill for your coding agent, creates the Connect app from a typed one.connect.ts, and can act for one of your users within what that user granted.
one skills add connect # the One Connect skill, into this project
one connect types # tool slugs and action names autocomplete in one.connect.ts
one connect create # review and approve the app in the browser
See Connect in the reference.
--agent right after one, or set ONE_AGENT=1, for JSON on stdout with no colors, spinners or prompts. A failure prints {"error": "..."} and exits 1.confirmation_required and sends nothing until the command carries --confirm-write. Flows need --allow-bash and --allow-code before a bash step or a code module runs.one init installs the One skill for Claude Code, Claude Desktop and Codex, and for Cursor, Windsurf, Kiro, Goose, Amp, OpenCode and Roo when you pick them. npx skills add withoneai/cli -g installs it before the CLI is there. The CLI refreshes the skill whenever its own version changes.one --agent guide and get the whole manual as JSON. The topics are overview, actions, flows, relay, cache, memory and sync.The One MCP server gives a