@eesel/cli
v0.4.41
Published
eesel platform CLI, manage your eesel agents from the terminal
Readme
eesel CLI
Manage your eesel AI support agents from the terminal
- or let your own AI agent do it. Every verb prints machine-readable JSON, so Claude Code, Cursor, or any terminal-driving agent can run your eesel setup end to end: connect a website, drop the chat bubble on a site, upload knowledge, talk to the agent, and approve its held actions.
npx @eesel/cli init chat-bubble --site https://your-site.com # no account needed
eesel login # keep the workspace: one browser hop, free trial, dashboard
eesel chat "what can you do?" # talk to your agent, right here
eesel status # what's connected
eesel approvals # actions waiting on your go-ahead(npx @eesel/cli ... runs any command with nothing installed; npm install
-g @eesel/cli gives you a plain eesel.)
Run eesel --help for the full command list.
The five-minute setup
eesel init chat-bubble --site https://your-site.com
eesel loginThe first command needs no account. With no stored login it creates a free
anonymous workspace ($5 of usage, 7 days), picks or creates its agent, adds
the chat bubble, prints the paste-ready embed snippet plus a hosted chat
link, and starts a chat where the agent connects, crawls and learns your
website (watch it with eesel chat; the site can also come from the
homepage field of the repo's package.json, or a prompt). eesel login
afterwards signs you in or up and makes that workspace yours, with everything
in it. Plain eesel init only picks or creates the agent and connects
nothing, matching a fresh dashboard signup. Each shorthand is sugar over a
standalone verb you can also run on its own, and everything is safe to re-run
(existing setup is reused, never duplicated):
eesel integrations connect website --url https://your-site.com
eesel integrations connect chat-bubbleThen test it without leaving the terminal:
eesel chat "what does this site do?"
eesel files upload ./refund-policy.pdf
eesel files ls # the file is listed once eesel has read it
eesel chat "what's our refund policy?" --task <id from the last reply>How it works
eesel loginopens the eesel dashboard once; after you click Authorize the credentials land at~/.config/eesel/credentials.json(0600).eesel logoutdeletes them,eesel whoamishows them.eesel chatstreams the reply live when you are watching a terminal, and prints a single JSON receipt (final text + task id) when piped - the task id continues the conversation with--task, andeesel newstarts a fresh one.- Conversations persist between invocations: plain
eesel chat "..."keeps talking in the current one,eesel sessionslists them (use <id>switches,showprints one,delete <id>forgets one locally), andeesel new --name "refunds"starts a named one. Runeesel chatwith no message on a terminal for an interactive prompt (/new,/sessions,/agents,/show,/quit; Ctrl+C exits). eesel approvalslists the agent's held actions (the ones configured to ask a human first);approve <id>/deny <id>decide them. Decisions are final - the action runs (or is refused) and the agent resumes on its own.- Provisioning speaks the product's nouns:
eesel integrations connect website --url <x>connects your website and starts the crawl, andeesel integrations connect chat-bubbleadds the chat bubble channel and prints the embed snippet plus a hosted chat link - each works standalone and is safe to re-run (existing setup is reused, never duplicated).eesel initpicks (or, in an empty workspace, creates) an agent and sets it as the stored default - it connects nothing on its own, matching a fresh dashboard signup.eesel init chat-bubble [--site <url>]runs init, adds the bubble, and (with a site - from--site, the repo package.jsonhomepage, or a prompt) starts the chat where the agent learns your website. eesel mcp tokenprints what an external MCP client needs to act in the workspace: the/mcpURL, a 30-day workspace token, the headers, and a ready-to-pasteclaude mcp addline. Docs: https://docs.eesel.ai/apis-and-developer-resources/claude-code-and-mcp-clients- Commands act as one agent: pass
--agent <id-or-name>per invocation, or set a default witheesel agents use <agent>. A one-agent workspace needs neither. - Output is machine-first on purpose (pretty JSON for single results, NDJSON
for lists,
--fieldsto project columns): the same CLI is what eesel agents themselves drive. Errors are one JSON line on stderr{error, hint, retryable}; exit 1 usage, 2 runtime. EESEL_API_URL+EESEL_API_TOKEN(+EESEL_AGENT_ID) environment variables take precedence over the stored login. That is how the eesel sandbox injects credentials, so the packaged CLI behaves identically inside it, and how CI can drive it without a browser.
Development (monorepo)
The command surface under src/vendor/ is copied byte-identical from
server/app/skills/eesel/bin/src/ (the in-product CLI) by
scripts/sync-vendor.mjs. Edit the originals, then re-sync:
node scripts/sync-vendor.mjs # copy
node scripts/sync-vendor.mjs --check # verify (runs in npm test and prepack)
npm testNothing here has runtime dependencies or a build step; plain ESM on Node >= 18.17.
