Soku CLI
Give any AI agent a secure command line to your growth stack.
Query marketing data, manage campaigns, publish SEO content, and automate
recurring work from Claude Code, Codex, Cursor, or any terminal.

Website · Agent guide · npm · Contributing
Soku CLI turns the tools and data already connected to your Soku workspace into
typed, discoverable commands. An agent can move from a question to an answer—or
from a plan to a human-approved action—without you copying data between tabs,
sharing API keys, or running an MCP host.
Why Soku CLI?
- One interface for your growth stack. Work with Google Ads, Meta Ads,
ChatGPT Ads, GA4, PostHog, SEO Hosting, automations, Context Hub, and more.
- Built for agents, useful in a shell. Commands are self-documenting, and
non-interactive output uses a stable JSON envelope that agents and scripts can
parse reliably.
- Credentials stay out of prompts. Soku handles authentication and can inject
connected third-party credentials server-side.
- Writes have a human gate. Delivery-changing ads operations create a review
request before anything goes live.
- New capabilities arrive automatically. The typed command tree is generated
from Soku's capability registry, with
soku call as a forward-compatible
escape hatch.
Quick start
Let your AI agent set it up (recommended)
Paste this into Claude Code, Codex, Cursor, or another coding agent:
Read https://soku.ai/cli/skill.md, install or update Soku CLI, sign in,
select my workspace, and install all business skills.
The agent guide walks the agent through installation, device login, workspace
selection, skill installation, and a first capability check.
Set it up manually
# Install globally (Node.js 20+)
npm install -g @soku-ai/cli
# Sign in with the browser-based device flow
soku auth login
# Find and select a Soku brand workspace
soku workspace resolve <brand>
soku workspace use-brand <brand>
soku workspace status
# See everything available to you
soku --help
No global install needed? Start with npx @soku-ai/cli --help.
Install as a plugin
This repository is also a marketplace plugin for Claude Code, Cursor, and Codex.
The plugin teaches the agent how to install, sign in to, and use the Soku CLI;
it does not bundle the CLI itself, so npm install -g @soku-ai/cli still runs on
your machine (the plugin's skill walks the agent through it).
# Claude Code
claude plugin marketplace add About-Intelligence/soku-cli
claude plugin install soku@soku
- Claude Cowork: the Claude plugin also registers Soku's remote MCP server (
https://api.soku.ai/mcp), so hosts without a shell can still read, research and prepare review-gated changes. Sign in when Cowork asks to authorize the soku connector.
- Cursor: open Customize → Plugins, import
https://github.com/About-Intelligence/soku-cli, and install soku at user or project scope.
- Codex / ChatGPT: clone this repository; its
.agents/plugins/marketplace.json registers the soku plugin in the local Plugins Directory.
Business skills (soku-ads-report, soku-google-ads, …) are not part of the
plugin. Install them on demand with soku skill install <slug>; soku update skills keeps them current.
What can you do with it?
Turn ad data into answers
Start with cached, normalized reporting across supported ad platforms:
soku ads list-ad-accounts --platform google
soku ads query-single-dimension \
--platform google \
--account-id <account_id> \
--dimension campaign \
--date-start 2026-06-01 \
--date-end 2026-06-30
Use the same workflow for Meta, TikTok, or ChatGPT Ads, or reach for Google Ads
GAQL when you need a custom breakdown.
Understand acquisition and product behavior together
# Website acquisition and conversion
soku ga4 list-properties
soku ga4 get-property-overview --property-id <property_id>
soku ga4 list-traffic-sources --property-id <property_id>
# Product behavior
soku posthog list-projects
soku posthog query \
--project-id <project_id> \
--tool execute-sql \
--arguments '{"query":"SELECT count() FROM events WHERE event = '\''$pageview'\''"}'
This makes it possible for an agent to investigate the path from campaign spend
to site traffic to in-product behavior without asking you to export CSV files.
Create campaign changes with a human in control