init
Scaffold a new integration project with all necessary files and configuration.Flags
Kebab-case identifier for the integration (e.g.,
"acme-crm"): lowercase
[a-z0-9] segments joined by single hyphens. Required — init fails with a
usage error (exit 2) naming the flag rather than prompting.What to scaffold:
integration (the default), experience (widgets, pages and workflows over integrations’ operations; see Build an experience) or repo (one repo that holds many of both; see One repo, many packages). --kind repo takes --slug <name> or --dir . and refuses to run inside an existing repo.Target directory. Defaults to
./<slug> — a new directory under the current working directory. Pass --dir . to scaffold in the current directory (useful for existing projects).Skip interactive confirmations. Accepted for non-interactive ergonomics;
init never prompts regardless.An http(s) URL or project-relative path to the target API’s documentation.
Repeat the flag for multiple entries. Written into
ekanos.json as the docs
field; without the flag the field is omitted. An absolute path, a ..
segment, or a non-http(s) scheme is a usage error (exit 2).Overwrite files that already exist. Without it, an existing file is left
untouched and reported in
data.skipped[].What it creates
ekanos.json— Project configuration (slug, entry)src/integration.ts— A workingdefineIntegration()startersrc/integration.test.ts— A starter testtsconfig.jsonandvitest.config.tspnpm-workspace.yaml— Approvesesbuild’s build script (allowBuilds: { esbuild: true }) so pnpm 10+ does not fail withERR_PNPM_IGNORED_BUILDS; npm and yarn ignore itscripts/setup-hooks.mjs— Wired via thepreparescriptpackage.json— Scripts and dependencies (merged into an existing one). Pins@ekanos/sdk,@ekanos/uiand@ekanos/harnessto^0.36.2,@ekanos/clito^0.33.2, and includesnext-intl(^4.14.7), the peer of@ekanos/uiand@ekanos/harnessdocs/api-notes.mdand.mcp.json— Docs-grounding files for coding agents;.mcp.jsonincludes this site’s search server- Agent-context files —
AGENTS.md,CLAUDE.md, and Claude Code skills under.claude/skills/(ekanos,build-integration,polish-widgets) .gitignore— Includes.ekanos/
Special handling for existing projects
Wheninit runs on a project that already has a package.json:
- Missing dependencies are added; existing ones are left alone
- npm’s stub test script (
"echo \"Error: no test specified\" && exit 1") is replaced with a real one "type": "module"is set (or kept) even if you had"commonjs", with a loud note. The scaffolded files are ESM TypeScript and cannot load under CommonJS.
init does not write is reported with a hint saying what to do about it: data.skipped[] carries { file, reason, hint }, and data.manifest.notes[] carries the same for package.json fields it could not resolve.
new
Add a package to an Ekanos repo.integrations/<slug> or experiences/<slug> of the repo, from the repo root or anywhere inside it. The slug is kebab-case and must not already be a package of the repo. Outside a repo it fails with precondition_failed and points you at ekanos init --kind repo. --dir runs the command as if from another directory, and --force overwrites files that already exist in the new package. See One repo, many packages.
validate
Parse the integration definition and validate it against the canonical schemas.Flags
Exit codes
0— No error-severity findings (warnings may still be listed indata.findings)3— Error-severity finding(s) found (seedata.findings)6— Noekanos.jsonin the directory, or anentrypath that does not exist9—ekanos.jsonis invalid,package.jsonis not"type": "module", or schema version skew (the project’s schema is newer than the CLI’s)
What it checks
- Schema version — Fails fast (exit 9) before loading anything if the project resolves a newer schema than the CLI bundles
- Schema validation — Loads your definition via esbuild and validates it against the real
@ekanos/integration-schemazod schemas - Slug agreement —
sluginekanos.jsonmust match the definition (an error) - Collisions — Slugs, widget ids, and tool names across every integration in the project
- Project checks — The required vitest SDK-inline block, local
docspaths, version agreement betweenpackage.jsonand the definition (a warning), and a lockfile that installs@ekanos/sdkor@ekanos/uimore than once (project.duplicate-sdk-instance, a warning)
data.findings — an array of { check, severity, file?, line?, message, hint }, where severity is error, warn, or info. Fix error-severity findings to reach exit 0.
publish runs the same findings pass before submitting, and refuses on any
error-severity finding.dev
Scaffold the local harness and run it with Next.js.Flags
Interface to bind. Defaults to
127.0.0.1 (loopback only). Pass another
address to expose on your network — prints a warning first.dev always materializes the harness first (harness.config.ts once, then the generated .ekanos/harness/ shell). Whether it then starts the server depends on the output mode: in an interactive terminal a bare dev starts it, and in JSON mode (--json, a pipe, or CLAUDECODE=1) a bare dev returns after scaffolding, so an agent or script is never handed a process that never exits. --start forces the start in either mode; --no-start forces scaffold-only. Use dev --start in anything you document or automate.
Start the dev server even in JSON mode. By default, JSON mode (
--json, a pipe, or CLAUDECODE=1) scaffolds and returns without starting; data.server carries { started: false, command, url, port } so the caller can start it.Scaffold only; don’t start the server. Useful for inspecting the generated
files or starting Next manually.
Before you run
The harness needs these dependencies in your project:dev fails with precondition_failed (exit 9) before writing anything if any of those packages is missing, and with invalid_state (exit 7) if .ekanos/harness exists but was not generated by dev (pass --force to overwrite it). If the started server exits non-zero, dev passes Next’s exit code through with error code dev_server_failed.
Repos and workspaces
Rundev at a repo root (ekanos init --kind repo) to serve every package from one harness, or inside any one package (integrations/<slug> or experiences/<slug>) to serve just that package. Both work in a pnpm, npm or yarn workspace. Inside a workspace package, your package manager installs next and the harness into the workspace root’s node_modules, so the generated next.config.mjs sets Turbopack’s root to the nearest directory with a pnpm-workspace.yaml, a repo-kind ekanos.json or a workspaces field. dev prints a line naming that root, and data.turbopackRoot carries it. Turbopack still watches your package’s source, because the package sits inside the root. The command dev prints and runs uses the workspace’s package manager (pnpm exec next dev in a pnpm workspace).
dev also warns, without failing, when the lockfile installs @ekanos/sdk or @ekanos/ui more than once. Two copies break the harness’s providers. See useOperation needs an ExperienceRuntimeProvider for the fix.
What it generates
The harness generates files into.ekanos/harness/ (gitignored, rewritten freely):
harness.config.ts at your project root. Everything else under .ekanos/ is generated and never edited by hand.
Modes
Fixtures mode (default) renders your integration with test data fromharness.config.ts. No vendor API calls, no OAuth loop.
Live API mode (selected from the toolbar’s Data dropdown in a single-integration project; the harness entry needs a live block) can, for an integration that declares oauth, run the full OAuth authorize → callback → code-exchange → onTokens loop against your own developer app:
- In the Local OAuth panel on the integration’s Connect tab, paste the secrets your definition names and Save credentials — they are written to
.ekanos/local-secrets.json(gitignored, never packed) - Click Connect —
onTokensruns, thenonActivate - Widgets read what
onTokens,onActivate, and schedules wrote
dev at the root of an Ekanos repo and one harness serves every package: a home for the repo, a console per integration at /integrations/<name>, and a view per experience at /experiences/<name>. There is no global Data selector there; each integration chooses Live or Fixtures for itself. See Repo mode. Inside a package, dev serves just that package.
Security
The harness has no authentication and renders your fixtures (or real vendor data in live mode). Binding to0.0.0.0 by default would expose this to anyone on the network.
devbinds to127.0.0.1(loopback only) by default--host 0.0.0.0opts in explicitly after printing a warning- The shell’s API routes (OAuth, storage) refuse non-loopback requests unless
EKANOS_HARNESS_EXPOSED=1is set
test
Delegate to the project’s own test script.Flags
Skip the structured appendix and pass through the runner’s output as-is.
Useful if the auto-detection guesses wrong.
-- is forwarded verbatim to the test runner.
Exit code
Once the test script runs, the CLI’s exit code is a transparent passthrough of the runner’s exit code; a failing run carries error codetest_failed. (A project that cannot be loaded fails first, with exit 6 or 9.)
Structured output
When your project’s test script uses vitest, the CLI also asks for a JSON report alongside the normal output. On failure, a curated “FAILURES” appendix renders after the runner finishes, mirroring the server-side gate’s own grading. Pass--raw to skip the appendix.
contract
Derive, check and record an integration’scontract.json.
"contract": { "version": "0.1.0" } from ekanos.json (a new project has it; a project without one gets 0.1.0 written on the first run, and --check leaves the file alone) and a version from package.json. --op (comma separated), --from fixtures|live and --input '<json>' record a real example from a run; a write is never recorded live. --check cannot be combined with --record or --bump, and an experience has no contract of its own. See Operation contracts.
add
Pin an integration into an experience.<integration>@<major>.<minor>: a pin is by compat line. A full version such as acme-cms@0.2.1 is accepted and reduced to its line (0.2), with a one-line note. Resolves the integration’s contract, writes the entry into ekanos.json integrations and the digest into ekanos.lock.json, copies the contract into contracts/, and regenerates src/.ekanos/integrations.d.ts. --ops lists the operations to allow (tool/<name>, action/<name> or a unique bare name). On a new integration the list is exactly the operations you name; with no --ops you get every read operation, and writes are opt-in. Prefix a name with + (--ops +action/create-draft) to mean the default reads plus that operation. On an integration that is already pinned, --ops only adds: it never removes an operation. --from-dir <folder> reads <integration>.contract.json files from a folder, and --from-path <dir> reads an integration project’s contract.json. Without either, a package of the same repo or your Source’s own published package is used first; any other integration your Source can see (global, or shared with your Source) is pinned from your Ekanos host, which needs ekanos login (CLI 0.26.0 and later). --as is gone: an experience addresses an integration by its own name. An integration already pinned at another line is an invalid_state error. See Build an experience.
sync
Re-resolve every pin of an experience.uses / slots project to integrations. --from-dir, --from-path and --contracts-dir choose where contracts are read from (EKANOS_CONTRACTS_DIR is the environment equivalent). ekanos codegen regenerates only the types, and ekanos codegen --check fails when they are stale.
check
Run an experience’s gate.ekanos.local.json, the integration-import boundary (source and bundle), the fixtures, the definition, and a tsc typecheck. Any error-severity finding fails with gate_failed (exit 10).
build
Build an experience.dist/ and manifest.json.
login
Authenticate this machine against an Ekanos deployment.Flags
Ekanos host origin: https, or http for a loopback host only. Falls back to the
EKANOS_HOST environment variable or the sole stored host. See Host
resolution.Log in to a host you have never used without being asked. Without it, a new
host is shown with its sign-in domain and asked about at a terminal, and
refused in JSON mode or under an agent (exit 7). Pass it only for a host you
have checked. See New hosts.
How it works
- The CLI prints a short code and a browser URL to stderr
- Open the URL in any browser on any device
- Approve the request — no need to be on the same machine
- The CLI polls and confirms when approved
Credentials
Your session (Auth0 refresh token + Ekanos JWT) is stored in~/.ekanos/credentials.json with mode 0600, keyed by host. If the file or directory is group/world-accessible, the CLI tightens permissions and warns on stderr.
Tokens are never printed — not by output, not in logs, not at any verbosity level.
Idempotence
- Logging in with a working session reports
already-authenticatedand exits 0 without opening a browser - Use
--forceto start a fresh login regardless - Two processes sharing one credentials file can race on a token refresh; the loser exits 4 (
auth_required) — re-runekanos login
logout
End the session on the server, revoke it at Auth0, and delete local credentials.Flags
Ekanos host. Falls back to
EKANOS_HOST, then host in the current
directory’s ekanos.json, then the sole stored host (see Host
resolution). With several stored hosts
and no other answer, it fails with a usage error.Idempotence
Logging out twice exits 0. The second run reportscleared: false — information, not a failure.
The server-side session is ended on the Ekanos host (so a copied credentials file cannot be refreshed again) and the refresh token is revoked at Auth0. Neither revocation blocks the local delete. A logout that only forgets the token would leave a rotating credential live; a logout that refuses because the network is down would leave the token on disk. So: try to revoke, always delete, report both.
whoami
Print the authenticated identity and seats.Flags
Exit codes
0— Authenticated and verified server-side2— No host could be resolved4— No session, expired session that couldn’t be renewed, or revoked session8— The host was unreachable
seats field is a best-effort add-on from the source-visibility endpoint. Its failure (network, MFA, old deployment) degrades to seats: null rather than failing the whole command.
sources
List every source you hold a developer or source-admin seat on.Flags
Project directory whose
ekanos.json source field is marked as the current
target. Defaults to the current working directory.Output
data is { host, sources, activeSource }, where each source is { id, slug, name, roles } and activeSource is the project’s source field (or null). Human mode marks the current publish target with *.
Run this before publish to see which sources you can actually publish to.
ekanos sources feedback [status|enable|disable] reads or changes whether ekanos feedback reports reach Vastly from the Source; see feedback.
catalog
What a source can already use, and what it takes to set each product up.--all lists every product the source can use instead, Features first and then Integrations, the same products sources products lists — what an agent template names: the ones enabled on it, the ones granted but switched off, and the ones it does not have yet. A product only Vastly can enable says needs a Vastly grant; one the source built, or a global integration, says its source admin enables it. A product with no package on the host is listed as such, and nothing can use it.
For each product it gives its tools (read or write, how sensitive, and the inputs each one takes, as JSON schema), the events a managed agent can be triggered by, the tool an agent replies with, whose connection a run uses, and setup steps: who does each one (Vastly, the source admin, or each team), whether it is done, and a guide link where the product declares one.
Whose connection a run uses:
- Each team connects its own: an agent run uses its team’s connection.
- Each person connects their own (such as Roam): an agent run uses its creator’s own connection. On a personal agent that is the person it runs for, its schedule and webhook runs included; on a team or provided agent it is lent to whoever the run acts for.
- A Source connection (such as Zendesk): a source admin can connect it once for every team with
ekanos apps connect. A provided agent whose template marks the product source-owned then uses it, limited to the team’s routed records.
tools, policy and connections.
Check it before building something a source may already have. If a product already does the job, set it up instead of rebuilding it.
Arguments
Flags
Source slug. Falls back to the
source field of ekanos.json, then to your
only seat. With several seats and neither, the command lists them and stops.Output
data is { host, source, viewer, products }. viewer.roles is your seats on the source. Each product carries slug, name, summary, kind (feature or integration), availability (enabled, turned-off or available), owned (the source built it), registered (false: no package on this host), scope, selfServe, requiresActivation, requires, tools, agentEvents, agentReplyTool, teamApps, connectedTeams, connectedPeople, connection and setupSteps.
- Each tool is
{ name, description, effect, sensitivity, inputSchema }.inputSchemais the tool’s JSON schema, the same one an MCP client gets. It describes the inputs and never holds data. connectionis{ connectedBy, runsUse, sourceConnection }.connectedByisteam,personornobody.runsUseisteam,creatorornone.sourceConnectionisunsupported,connectedornot_connected.connectedTeamscounts teams that connected a team-scoped product.connectedPeoplecounts people who connected a per-person one, and never says who. Both arenullunless you are the source’s admin.- A setup step’s
actorisekanos(Vastly, printed as “Vastly”),source_adminorteam.
doctor
Check one published integration or experience on a host, check by check, without calling it.vastly-internal__news), its package name (vastly-internal/news) or a bare global slug (linear). It asks the host as an integration first and, when the host has none of that name, as an experience. --kind names it and skips the second question.
For an integration it checks that the package is in the registry the host deployed, that a verified contract exists for it, that the product row exists, that it is visible to the Source and entitled to it, and that its release is live and not killed in this environment. For an experience it checks its release too, then each integration it uses: the contract, that the pinned line matches, the product row and that the operations it declares exist. An integration the executor would refuse shows the reason it gives, such as release_unverifiable, and the check that failed.
With --team it also checks the connection each integration resolves to for that team, as you, the way the executor would resolve it. Nothing is ever called, so a run costs no quota.
Every OAuth connection the package uses lists the redirect URI Ekanos sends the provider. A warning shows where the one the provider has stored differs, which is how a provider rejects a connect with a redirect mismatch.
Arguments
Flags
Output
data is the host’s report: { target, environment, checks, slots, oauth, ok }.
targetis{ kind, token, version }.environmentisdev,stage,prodorlocal.checksand each slot’schecksare{ id, ok, detail? }.- A slot is
{ slot, integration, line, modes, checks, refusal }. It is empty for an integration.refusalisnull, or{ reason, check?, detail? }. - An
oauthentry is{ integration, connection, expectedRedirectUri, storedRedirectUri, drift }. okis true when every check passed and nothing was refused.
Exit codes
0 when ok is true. 1 when it is false: the report is still printed, in data under --json with error.code doctor_failed, and on stderr in human mode. A host that does not know the target exits 6, and a session or seat problem exits 4 or 5.
apps
An integration’s app for the whole Source: the OAuth client every team signs in through, such as Linear’s. Until the Source has it, no team can connect. Only a Source admin can run these.apps show lists each credential: the client ID with its value, the client secret as saved or not set (never its value). apps set asks for both, and pressing Enter keeps the saved one, so you can change just the client ID or rotate just the secret. At a terminal it takes the secret with hidden input. Without one (a script, --json, an AI assistant driving the CLI), pass the client ID as --set clientId=<id> and the secret from the environment, a private file, stdin or a form in your browser; see Secrets without a terminal. It never takes the secret as a value on the command line. The credentials go to the Source’s vault, and the change is recorded in the Admin Audit log. Integrations where each team brings its own app, such as Zendesk, have no Source app; apps says so.
One connection for the whole Source
For an integration that declares a Source connection (sourceConnection, such as Zendesk), a Source admin can connect it once for every team’s provided agents, instead of each team connecting its own:
apps connect first asks for that app’s fields for the Source (subdomain, client ID, client secret, webhook signing secret), at a terminal with hidden input for secrets, or from --set <field>=<value> and the secret-input flags without one; pass --no-wait to print the links without waiting. They are stored on the Source’s connection, not in the Source app that teams sign in through. Whoever clicks the consent link is the account the integration acts as for every team, so use a dedicated seat. The tokens go to the Source’s vault, never a team’s, and connect and disconnect are recorded in the Admin Audit log. The same controls are in the Source admin area under Shared integrations › Connections.
A Source connection is used only by provided agents whose template says "connections": { "zendesk": { "owner": "source" } }. A team member’s widgets, assistant and workflows, and a team’s own agents, always use the team’s own connection, and a team never sees the Source’s. Events reach teams through routes.
routes
Which team gets which events on a Source connection. An integration routes by a value inside each event (Zendesk: the ticket’s organization); each value maps to exactly one team. Only a Source admin can run these.- Mapped: it is recorded and dispatched as the mapped team’s event. Only that team’s agents’ triggers fire, and its runs, approvals and audit are the team’s.
- Not mapped (or the event carries no value): it starts nothing and is never sent to a default team. The integration may leave a fixed note on the record (Zendesk: an internal note saying no team has the ticket yet), and the event waits in
routes unrouteduntil you map the value andreplayit.
routes webhook refuses to mint another (invalid_state, exit 7): a new URL revokes the old one, and every routed team’s events stop until the vendor has the new one. Re-run it with --yes when you are ready to paste the new URL into the vendor. routes remove also needs --yes: the value’s events stay unrouted until it is mapped again.
Who: a source_admin seat (forbidden, exit 5, for a developer seat).
teams
A team’s setup of one integration, for the Source’s admin: the team-level counterpart ofapps. Use it for an integration where each team brings its own app, such as Zendesk (subdomain, client ID, client secret, webhook signing secret). Only a Source admin can run these, and only on the Source’s own teams.
teams show prints in brackets, such as the client secret’s.
teams show <team> with no product is the team’s overview: its member count, one line per integration the Source has enabled (whose connection it is: the Source connection with the team’s routes, the team’s, or a person’s; or the command that connects it), and one line per provided agent with the same verdict as teams agents show: Live: yes, or the steps left and the next command. With --json: { host, team, integrations, agents }.
teams show reads like a checklist. It shows whether the Source has the product, each field of the team’s app (a non-secret field with its value, a secret as saved or not set, never its value), the callback URLs to register and the integration’s own setup steps, and each webhook and whether it has a live URL. It also shows whether the team has connected and who did it, the link where a team member clicks Connect, and the agent events the product offers. Under Connections it states each OAuth connection the integration declares on one line: Linear’s main connection (the personal one) as connected or not, and its agent connection as app credentials saved or not, installed or not, and webhook URL made or not. A connection that one of the team’s agents’ enabled triggers waits on says which (Needed by: triage (linear.mentioned)), and when it is not installed, the command that installs it. With --json, data is { host, source, team, product, enabled, activation, teamApps, connections, connectUrl, agentEvents }; each entry in connections is { connectionId, label, teamApp, credentialsSaved, connected, connectedAt, connectedBy, neededBy }. Each entry in teamApps carries connectionId, fields ({ secretName, label, sensitive, set, value }, where value is null for a secret), callbackUrls, setup, webhooks ({ webhookId, endpoint }, where endpoint is the token prefix and dates, never the token) and connection.
teams app set updates any of the team’s app fields, one at a time if you like: a field you skip keeps its saved value, so changing one never means re-entering the rest. With no flags it walks every field, and pressing Enter keeps the saved value. --field <name> asks for just the named fields. --set <name>=<value> sets a non-secret field (a subdomain, a client ID) without a prompt, and works in a script. --clear <name> removes a saved value. At a terminal, secrets are asked for with hidden input: the question is printed and each typed character shows as *. Without one, --set-secret <name>=env:<NAME>|file:<path>|stdin fills a secret field and --browser opens a form for every field; see Secrets without a terminal. It never takes a secret as a value on the command line, and --set refuses a secret field. Saving a partial app is fine; teams show lists what is still missing, and a team member can’t connect until every field is set. Pass --connection <id> when the integration has more than one team app. The values go to the team’s vault, and the change is recorded in the Admin Audit log with the field names only.
teams webhook prints the URL to paste into the provider. Copy it straight away, because it is never shown again. Making a new URL revokes the old one, and the provider’s webhook stops working until it gets the new one. So when the team already has a live URL, teams webhook refuses unless you pass --yes. Name the webhook (teams webhook <team> <product> <webhook-id>) when the app sends more than one.
Onboarding a team
A Source admin can also create a team and bring its people in:teams create, teams members, teams roles and teams connect, like the
team agents commands below, ship in @ekanos/cli 0.11.0.teams create makes you the team’s owner. With --owner <email>, that person gets the invitation email instead and becomes the owner when they accept it. Without --slug, the slug is made from the name. Creation needs team accounts switched on for the Source.
teams rename <team> <name> renames a team as its Settings page does, with the same name rules (2 to 50 characters, no special characters, not a reserved name). The slug follows the new name, as it does in the app, so the output names the slug to use from now on. Links and scripts that name the old slug stop reaching the team. The same name changes nothing, and each rename is recorded in the Admin Audit log. Archiving, deleting a team and transferring its ownership aren’t in the CLI: in the app, the team’s owner does those after confirming a code sent by email, and a super-admin can do them under /admin. Leaving a team is under Team lifecycle.
teams members add <team> --self makes you a member of one of your Source’s teams at once, with no invitation email: as a Source admin you manage every team without being on it, and connecting your own account to a team (a personal product such as ROAM), or signing in for it, needs you to be a member. teams members add <team> <email> does the same for someone who already has an Ekanos account on your Source; anyone else is refused with NOT_A_SOURCE_USER (the same answer whether they have no account or one elsewhere) and is invited instead. The role defaults to member; pass --role admin to connect team-wide products yourself. The team’s top role (owner) is never added this way: it is only taken by accepting an invitation (ROLE_NEEDS_ACCEPTANCE). Someone already on the team is left as they are, and a pending invitation for them for the same or a lower role is withdrawn in the same step (one for a higher role stays). Each addition is recorded in the Admin Audit log. teams list says which teams you are not a member of, and a team nobody has joined prints the command that joins it.
teams members invite sends the app’s invitation email, from the Source’s own address. The role defaults to member; teams roles list shows the roles your Source uses, with each one’s permissions (for example, which role holds agents.review to review agent drafts). teams members role and teams members remove work on members and on pending invitations alike: on someone who has not accepted yet they change or withdraw the invitation. remove needs --yes. The primary owner’s role can’t be changed or removed here; ownership moves in the app. Every creation, invitation, role change and removal is recorded in the Admin Audit log.
teams connect connects it, doing whichever the integration needs: a product that works as shipped says so; one the Source does not have, or a Feature, is refused with the reason; a form-based integration asks the form’s fields at your terminal (secrets hidden), or takes them from --set <field>=<value> and the secret-input flags without one, never as arguments, and activates exactly as the app’s Connect does; an OAuth integration first runs the teams app set prompts if the team’s own app is missing (Zendesk), then prints a one-time sign-in link, opens it in your browser and waits until the team is connected. Only an https link (or http to localhost) is printed or opened; anything else the host returns is refused (invalid_state, exit 7). The person who signs in must be a member of the team (an owner or admin for a team-wide connection): you, when you are one, otherwise name them with --as <email> and send them the link (valid an hour; it is never opened in your browser). A personal (user-scoped) integration connects the person who signs in, and a provided agent uses the personal connection of the person it runs as (teams agents enable --as), so connect it --as that person: teams connect warns when the team’s agents run as someone else, and teams agents list prints the command with their email. --no-open only prints the link, --no-wait returns without waiting, and --link-only prints the team’s page as before. A form the terminal cannot fill (a bespoke sign-in) prints the team’s page instead. Every connect is recorded in the Admin Audit log. teams show has the full checklist.
Every field type the integration’s form takes is entered at the terminal, or passed with --set <field>=<value> so it works in a script or an agent run: text, a number, yes or no, one of a set of choices, a list as a,b,c (or a JSON array when an entry holds a comma), and any structured value as JSON. The prompt says which each field takes, and pressing Enter skips an optional one. Without a terminal, an optional field nobody passed is skipped and a required one is refused by name. A secret is never taken from --set: it is typed at the terminal, hidden, or given with the secret-input flags (--set-secret <field>=env:<NAME>|file:<path>|stdin, --secret-env/--secret-file/--secret-stdin for a single one, or --browser). A structured (JSON) value is treated as a secret too, since it can carry credentials. The host refuses a secret named as coming from --set (SECRET_AS_ARGUMENT). Only a field no terminal can produce (a date object, a file) still sends you to the team’s page, and the reason names that field and its type.
The first-party integrations that sign in through the app’s own connect route — GitHub, ROAM, Dropbox, Google Drive, Google Workspace, Microsoft 365, QuickBooks, RingCentral, Constant Contact, Wild Apricot, Boost — connect the same way: the few plain settings each allows are asked first (GitHub’s default owner, repository, project and labels, all optional; the others take none), never a token or the account the sign-in connects, which only the sign-in sets; then the link opens the provider’s sign-in through your Source’s app, and the fields are applied when the sign-in returns. Open the link in a browser signed in to the app as the member it names; if it asks you to sign in first, do, then open the link again. A personal (user-scoped) product such as ROAM connects the account of whoever runs teams connect: run it yourself (after teams members add <team> --self if you are not on the team), or pass --as <email> for a link only that member can complete.
teams connect on a team that already reads as connected says so and stops. When that connection is broken (a revoked or expired sign-in, or form values that changed), pass --reconnect to connect it again the same way. An OAuth reconnect prints the sign-in link and returns without waiting, because the team already reads as connected; the old tokens keep working until the new sign-in replaces them.
--connection <id> connects one of the integration’s named connections instead of its main one. For Linear that is agent: the team’s own Linear app, installed in its workspace as a member people can @mention and assign. Without it, Linear never sends the mention and assignment webhooks, so an agent’s linear.mentioned or linear.assigned trigger is saved and on, and never fires. The flow is the same: it asks for the app’s client ID, client secret and webhook signing secret if any is missing, opens the install (approve it as a workspace admin), and waits until it is installed. Run without --connection, once the main connection is made, teams connect offers to install any named connection the team’s agents’ triggers wait on; in a script or an agent run it names the command instead, and --json carries it as channelsToInstall. See Set up your Linear agent.
teams connect <team> slack and teams connect <team> linear-app install the two channels agent triggers answer through: Slack, and Ekanos’s own Linear Agents app (not the team’s own Linear app above). It is the same link-and-wait: a one-time link for the team member who installs it, opened for you when that is you, and a wait until it is installed. The member must hold what the app’s own button asks for: products.activate for Slack, agents.manage for the Linear app. They finish it signed in to the app as themselves, so nothing is installed that they could not install. Slack must be enabled on the Source. With --json or --no-wait it returns { host, team, channel, name, installed, workspace, problem, authorizeUrl, expiresAt, member } without waiting.
teams disconnect <team> <product> --yes takes the team’s connection down, the same as Disconnect on the team’s Integrations page. The activation, its tokens and its OAuth connection go, and every widget, workflow and agent of the team that uses it stops until someone connects it again. The team’s own app keeps its saved fields, so connecting again needs only the sign-in. It always needs --yes. A personal (user-scoped) connection belongs to the member who made it and is refused with PERSONAL_CONNECTION: they disconnect their own with teams disconnect <team> <product> --mine --yes — any seat, as an active member of the team (NOT_A_TEAM_MEMBER otherwise), and only ever their own: the account it removes is their session’s, nothing in the request names a person (TEAM_CONNECTION for a team-wide one). With --json, it returns { host, team, product, wasConnected }. The disconnect is recorded in the Admin Audit log.
Team lifecycle
teams members resend <team> <email> does what the team’s invitation menu does for a pending invitation: a live one is resent as a fresh invitation email (the earlier link stops working), and an expired one is renewed for 7 more days (the link they already hold works again; no new email is sent). With --json it returns { host, team, email, role, action, expiresAt }, action being resent or renewed.
teams leave <team> ends your own membership of a team, as the team’s Settings → Leave team does. It asks first at a terminal; in a script or an agent run pass --yes. The primary owner can’t leave (PRIMARY_OWNER). Leaving does not touch your Source admin seat.
Transferring a team’s ownership and deleting a team are not CLI commands. In the app both are the primary owner’s alone, confirmed by a code emailed to them, and a Source admin seat does not stand in for that.
Each of these is recorded in the Admin Audit log.
Groups
PRODUCT_NOT_VISIBLE_TO_TEAM, or PRODUCT_NOT_IN_BUSINESS_TYPE on a host on the audiences model; teams audience <team> names the team’s audience and audiences show <audience> lists its products), and a group holds only the team’s own members (MEMBER_NOT_FOUND otherwise).
groups list shows three kinds of group. Hosts that predate kinds list only the first:
- The team’s own groups, made from the CLI or the team’s Settings → Groups page.
- Predefined groups of the team’s business type, made by the Source admin and marked
(predefined). You can change a predefined group’s products and its members on this team, but you can’t delete it from one team (GROUP_PREDEFINED). - Everyone, the group of every member who is in no other. Its members are implicit, so it can’t be edited, deleted or given members (
GROUP_IMPLICIT).--productsreplaces the group’s products;--products noneclears them. Widget and tool narrowing stay on the page. Deleting a group and taking someone out of one ask first at a terminal; in a script or an agent run pass--yes. In the app this takesgroups.manageon the team; from the CLI your Source admin seat is the authority. Each change is recorded in the Admin Audit log. With--json, each group is{ id, name, kind?, description, members, products, widgetCount, mcpToolCount },kindbeingteam,predefinedoreveryone.
Integration health
teams health shows the rows of the team’s Integrations → Health page: each team-wide integration the team has connected, its status (healthy, degraded, unhealthy or unknown), why, and when it last succeeded and failed. --run runs that integration’s health check now, as the page’s Run check now does, writes the verdict and is recorded in the Admin Audit log. A personal (user-scoped) integration’s health belongs to each person and is not listed or run here (USER_SCOPED): teams health <team> <product> --mine [--run] shows (and checks) your own connection’s — any seat, as an active member; --run takes a role that can configure the team’s integrations, as the page’s button does. One the team (or you) has not connected has nothing to check (NOT_CONNECTED).
Default workspace
teams workspace list shows the team’s workspaces with its own labels and which one it lands on; teams workspace default <team> <workspace> sets that one, as the team’s Settings → Workspaces Make default does, where the Source has Workspaces switched on (WORKSPACES_DISABLED otherwise). A member who picked their own default keeps it. The change is recorded in the Admin Audit log.
Source roles
teams members role). sources roles manages them through the same database functions as the team Settings → Roles page, which only a Source admin or a super-admin may call. Owner, admin and member are system roles: listed, but never changed or deleted (SYSTEM_ROLE). A custom role’s name is lowercase letters, digits and dashes; its --level is 1 to 1000, lower ranking higher, and must sit below the owner’s (INVALID_LEVEL); it defaults to 100. --display-name defaults to the name. On update, --permission replaces the role’s permissions, while --grant and --revoke add and take away one at a time. A role a member still holds can’t be deleted (ROLE_IN_USE): give them another role first. delete asks first at a terminal; in a script or an agent run pass --yes. The list ends with every permission a role can hold. Each change is recorded in the Admin Audit log.
People
sources people is the Source admin’s People page: everyone with access to the Source, one row per person, with each team they are on, their role there, and whether they are invited or suspended. 25 to a page. If the list can’t be read the command fails rather than printing an empty one. With --json it returns { host, source, people, total, page, pageSize }.
Source products
sources products lists the catalog as one Source has it: Ekanos’s products, the integrations the Source built itself (marked “built by this Source”), global integrations (marked “global”), and nothing else another Source built unless yours has been given it. enable and disable switch a product through the same levers as /admin (the entitlement with its dependency guards for an Integration, the Feature’s own Flag, plan or entitlement for a Feature), with an Admin Audit row per change under your name.
An integration your Source built is enabled for your Source automatically once Ekanos admits it and the version is live; a Source admin can turn it off and on again from here, and once off it stays off. A global integration (one released to every Source, marked “global”) is yours to enable too: a Source admin switches it on with enable, and teams connect then connects it. When a command meets a global integration your Source has not enabled, its error names the enable command. Anything else, Ekanos’s own catalog included, is a super-admin grant: an ekanos login session never carries super-admin, so from the terminal the host answers SUPER_ADMIN_REQUIRED and a super-admin makes the change in the browser. Without a Source admin seat the host answers SOURCE_ADMIN_REQUIRED.
With --json, create returns { host, source, team, owner, teamUrl }; members list returns { host, source, team, members, invitations }; roles list returns { host, source, team, roles }, each role { name, displayName, hierarchyLevel, permissions }.
Audiences
An audience is a named set of the Source’s products that people see in the app, with optional per-product rules narrowing it to some widgets or some tools. It replaces a product scope. The audiences these commands manage are the Source’s business types: every team is on one, and every member of the team is on the team’s. The team’s groups narrow it per person. An audience that includes every entitled product shows the Source’s whole catalog, now and later. A personal account has no audience.
With
--json, audiences list returns { host, source, audiences }, each { id, name, description, isDefault, includesAllEntitled, products } with products entries { slug, name, widgetIds?, toolNames? }; show, create and set return { host, source, audience }; teams audience returns { host, source, team, audience } (set adds before), and with --member, { …, member, audience, isOverride } (isOverride is always false on a host on the audiences model).
Who: a source_admin seat (forbidden, exit 5, otherwise). A default audience, and one still held by a team or an enrollment key, is not deleted. Deleting an audience stays in /admin.
Product scopes
A Source can sort its products into named product scopes (Bronze, Gold, …). Once it has any, each team sees in the app only the products of the scopes it holds: a product can be enabled for the Source, connected for the team and used by its agents, and still be missing from the team’s Integrations page because its scope leaves it out. A team holding none of the Source’s scopes sees no product at all. A Source with no scopes shows every team everything it has. Scopes are created at /admin; from the terminal a Source admin reads them, changes their products, and says which a team holds.
Wherever the CLI reports a product as ready for a team —
teams show <team> and teams show <team> <product>, teams connect, teams agents show — it also says when the team’s scopes hide that product in the app, and prints the command that fixes it. On a host whose scopes are retired, a team that holds no scope is told its audience hides the product, and the fix names teams audience and audiences set. With --json, the product’s state carries scope: { state, scopes, hidden } (state is unscoped, scoped or locked_out), teams connect’s plan carries the same as productScope, and each product an agent needs carries hiddenByScope.
With --json, sources scopes returns { host, source, scopes }, each { id, name, description, isDefault, products, teamCount }; add and remove return { host, source, scope, product, changed }; teams scope show returns { host, source, team, state, scopes, products } (products is null when unscoped); set adds before and hidden.
Who: a source_admin seat (forbidden, exit 5, otherwise), checked by the host under your own session. Each change is recorded in the Admin Audit log. Creating, renaming or deleting a scope stays in /admin.
Secrets without a terminal
Every command that takes a secret —apps set, apps connect, teams app set, teams connect, teams mcp token (and teams mcp add --auth token), teams llm-key set — runs the same way in a script, in CI or under a coding agent as at a terminal. The secret comes from one of these, never from a value on the command line (that lands in your shell history and the process list, and in an agent’s context):
--secret-env, --secret-file and --secret-stdin fill the command’s one secret; where there are several, name each with --set-secret. A field that is not a secret (a subdomain, a client ID) is --set <field>=<value>. At a terminal with none of these, the CLI asks with hidden input as before; with none of these and no terminal, it refuses (usage, exit 2) and the hint names the forms.
The browser form. --browser starts a small web server inside the CLI, on 127.0.0.1 only, at a random port and an unguessable one-time path, and opens it in your browser. The page shows the fields with their labels and help, secrets as password inputs, and loads nothing else: no script and no external asset. It accepts one submission from its own page (a different Origin or Host is refused), then shuts down; if nothing is submitted within five minutes it shuts down and the command fails (validation, exit 3) with nothing saved. The CLI never prints the secret. It prints the form’s one-time link to stderr (never into the --json output, a log or last-error.json), whether or not a browser opened, so a run with no terminal can hand it on: open it on the same computer. This is how an agent hands you a secret to type: it runs the command with --browser, and you fill the form it opened or the link it passed you.
--browser is never chosen for you. A run with no terminal is usually an agent or CI, and the CLI cannot tell whether anyone is at the desktop, so a form nobody fills would stall it. It is refused straight away where it cannot work: in CI (CI set), over SSH, or on Linux with no display (precondition_failed, exit 9).
Nothing in the output, --json or an error message carries the secret, nor anything given where a name or path was expected (it may be the secret mistyped).
Secrets go to a file
A secret the host shows only once — a team webhook URL (teams webhook), the Source’s routed webhook URL (routes webhook) and a webhook trigger’s bearer token (teams triggers add … webhook, teams triggers rotate) — is never printed, in a terminal or not, with or without --json: under a coding agent, anything printed lands in the model’s context. The CLI writes it to a new file under ~/.ekanos/secrets/ ($EKANOS_HOME/.ekanos/secrets/ when set), named <team or source>-<what>-<timestamp>, readable only by you (directory 0700, file 0600, never overwritten), and prints the file’s path and what the secret is for. Open the file yourself, copy the value into the provider or sender — not into a chat or an agent session — and delete the file.
With --json, teams webhook and routes webhook return secretFile in place of url, and teams triggers add and rotate return webhook: { url, secretFile } in place of webhook: { url, token } (a trigger’s URL names the trigger and is not a secret). CLIs up to 0.13 returned the values; a script that read url or webhook.token now reads the file at secretFile instead. The CLI checks the directory is usable before asking for the secret, so a secret is never minted, and an old one revoked, with nowhere to put it.
Team agents
A Source admin can also set up a team’s agents for it: turn a provided agent on, keep the team on a version, change what waits for approval, and add triggers, links and MCP servers — and build the team’s own agents, or a personal agent of their own, from the sameagent.json that ekanos agents apply reads. Every command takes the shape ekanos teams <area> <verb> <team> …, and the team may be passed as --team <slug> instead, as runs, approvals, skills and knowledge take it. It acts only on the Source’s own teams (another Source’s team is not found), and records each change in the Admin Audit log under your name.
Things to know:
- A personal agent is its creator’s. It acts for its creator, with their own connections, on every trigger, so nobody else changes it — not a team manager and not you as the Source admin. Every write on someone else’s personal agent is refused with
PERSONAL_AGENT_CREATOR_ONLY(forbidden, exit 5):apply,enable,disable,confirm,policy,skills,triggers add|remove|rotate,links add|remove(from it, or to it),runs startandruns cancelon its runs, andapprovals approve|reject|editon its approvals. You still see that it exists (teams agents list|show,runs list), butruns showon its run withholds its input, output, transcript, error and live log (contentWithheld: true) andapprovals listwithholds its arguments (argsWithheld: true). Its creator does all of it signed in as themselves. - Who creates. Creating an agent makes you its creator, so you must be an active member of the team:
createandapplyrefuse withNOT_A_TEAM_MEMBERand the command that adds you (ekanos teams members add <team> --self), orAGENTS_MANAGE_REQUIREDfor a team agent when your role there doesn’t manage agents (use--personal, or take a role that does). - Confirming access. An agent uses the connections of the person it runs as, and in runs no one watches only once someone who sets it up has confirmed it may: the Source admin with
ekanos teams agents confirm <team> <key>(orenable --confirm-accessto turn it on and confirm at once), or one of the team’s agent managers with Confirm access in the app. Each confirms as themselves and is recorded as the one who confirmed; a plain team member never confirms. Until it is confirmed, the agent keeps only what needs no confirmation, andlist,enable,pinandpolicysay so and print the command. - What keeps a confirmation. A new version that changes skills, instructions, model, turn limit, triggers, links, connections or override switches keeps it, and the team moves to it.
- The publish is the confirmation. When a new version’s grant reaches further than a team confirmed (a new product or tool,
customtoread_onlyorall) or its policy lets more run on its own, every following team still moves to it, and a team that had confirmed stays confirmed, now in the publisher’s name. No team is held on an earlier version. A team that never confirmed moves unconfirmed, a pinned team stays on its pin, and a team testing a draft moves when you publish.unpinmoves a team to the published version the same way, confirmed in your name;pinto a version that reaches further drops the confirmation. A team policy that lets more run on its own still drops the confirmation. - A looser policy drops the confirmation. On a team’s own agent,
teams agents policy … setthat lets more run on its own (--writes auto,--reads auto, or a tool that asked set toauto) drops the confirmation, compared the same way as a provided agent’s: until someone who sets it up confirms again (a team manager on the agent’s page in the app, or you with--confirm-access), it uses only what needs no confirmation. Asking for more approvals keeps the confirmation. A change racing another one is refused withAGENT_CHANGED; show the policy and set it again. - A provided agent’s policy is the template’s.
teams agents policy … seton a provided agent is refused withAGENT_POLICY_TEMPLATE_OWNED. Changepolicyin the template’sagent.json, apply and publish instead. The refusal’s hint mentionsekanos agents overrides <key>, which turns on the template’spolicyoverride switch so a team can keep its own differences. - A provided agent’s skills are the template’s, plus the team’s where it allows.
teams agents skills … addis refused withAGENT_SKILLS_TEMPLATE_OWNEDunless the version the team runs hasteamCustomization.skillson, andremovekeeps the template’s own skills (SKILL_FROM_TEMPLATE). Each change bumps the agent’s version, as in the app. - Is it live?
teams agents show <team> <key>answers for one agent: one line per product and whose connection it acts through (the Source connection and the team’s routes, the team’s, or the personal connection of the person it runs as), one line per trigger with how its events arrive and the last event and run, whether access is confirmed, thenLive: yesorLive: no — N steps leftand exactly oneNext:command. It’s live when it is on, on a published version, every connection it needs is made, access is confirmed, a trigger is on and every trigger’s events can reach it.teams agents listends each agent with the sameLiveline. With--json,showreturns{ host, team, agent, readiness, lastRun, recentEvents }, wherereadinessis{ live, steps, next };listaddsreadinessto each agent. - How a trigger’s events reach the agent.
teams agents listchecks each trigger, with the command that fixes whatever is missing: an install (✗ missing: Linear agent not installed for this team); for an integration whose events arrive on a webhook (Zendesk), a webhook URL minted for the team (teams webhook <team> <product>); or, when the agent uses the product on the Source connection, the Source’s webhook (routes webhook <product>) and a route for the team (routes set <product> <value> <team>). A reachable trigger shows when its webhook URL last received a delivery. - Slack and Linear triggers answer through the team’s install, so install it first with
teams connect <team> slackorteams connect <team> linear-app. Thenteams triggers add <team> <key> slack --channel <#name|id>… [--dms] --yesadds a Slack trigger. The bot must already be in each channel.--yesconfirms that anyone there, or anyone who messages the bot, can ask the agent to act with what it is granted, the same confirmation the app asks for.teams triggers add <team> <key> linear [--label <name>]… [--no-mention]answers @mentions and assignments, plus new comments on issues with those labels. One agent answers per Slack or Linear workspace. - A webhook trigger’s token is shown once, when you add the trigger or rotate it, and goes to a file only you can read, never the output (see Secrets go to a file).
triggers listsaysno token yetfor one that has none.
--json, teams agents list returns { host, team, agents, mcpServers, ownAgents }, each own agent { slug, name, status, version, ownership: team | personal, createdBy, yours, accessConfirmed, triggers }; show on one of them returns { host, team, ownAgent }. create and apply return { host, team, outcome: created | updated | unchanged, slug, name, ownership, status, version, createdBy, skills, accessConfirmed, access, skillsPushed }. triggers add on a personal agent adds actsFor: "creator", and its agent carries ownership. Each agent carries channels: what its enabled triggers need installed before they can fire, each { key, name, product, connectionId, triggers, installed, webhook, ready, problem }. A missing channel never stops a run, so it is listed apart from missing. enable, confirm, disable, pin and unpin return { host, team, key, slug, status, version, pinned, runsAs, accessConfirmed, access, missing, channels }, where access is what a confirmation covers: { scope: custom | read_only | all, products: [{ key, name }], tools }. policy returns { host, team, key, slug, reads, writes, overrides, editable, lockedReason, tools, accessConfirmed, runsAs }. skills returns { host, team, key, slug, editable, lockedReason, skills }, each skill { slug, name, level, fromTemplate } with level one of team, source, platform or person. triggers list returns { host, team, agent, teamOwned, triggers }, and mcp list returns { host, team, servers, missing }.
Who: a source_admin seat on the team’s Source. A developer seat gets forbidden (exit 5).
A team’s LLM key
A team can bring its own Anthropic key: its agents and assistant then use it instead of the Source’s. The team’s settings page sets it; a Source admin can do the same from the CLI.show says only whether a key is saved, the provider and the key’s last four characters. set takes the key at your terminal with hidden input, or from the secret-input flags, never as a value on the command line; the host checks it is an Anthropic key (sk-ant-…) as the settings page does, stores it in the vault and keeps only a hint. remove needs --yes without a terminal. With --json, show and set return { host, team, provider, set, last4, addedAt } and remove returns { host, team, provider, removed }. Who: a source_admin seat; each set and remove is recorded in the Admin Audit log, saying only that a key was set or removed.
Team events
When an agent should have run and didn’t, start here.teams events lists the integration events recorded for one team, newest first, with each event’s status, its last error and the runs it started, or why it started none. It is read-only and never shows the event’s payload. It is the team-level counterpart of routes unrouted: an event that reached no team is there, and an event that reached this team is here.
--product. --since takes a duration before now (30m, 24h, 7d) or a date. --limit is 1 to 100 and defaults to 25.
Each event says what happened to it:
donewith runs: each run it started, with its agent and status.ekanos runs show <run-id> --team <team>opens one.donewith no run: either no enabled trigger on the team subscribes to the event (add one withteams triggers add <team> <key> event <event-id>), or some do and none matched their filter, or the agent could not start (paused, or Agents off). The trigger count is read now, not at the time of the event.failed: the last attempt threw, with the error and the attempt count. It is retried while attempts remain.dropped: given up on. No integration declares the event any more, its payload did not validate, or it was the agent’s own activity.pendingorprocessing: not dispatched yet, or being dispatched now.
--json, data is { host, source, team, events }. Each event is { id, product, eventId, status, attempts, lastError, receivedAt, processedAt, runs, subscribedTriggers }, and each run has the same shape as in runs list.
Who: a source_admin seat on the team’s Source.
agents
A source’s agents, held by Ekanos: list them, read one, change one, and choose the version every team runs. Nothing is deployed and no package is released — a change is live once it is published.Subcommands
agent.json
toolssays what the agent may call:read_only(every read a team has connected),all, orcustomwith wholeproductsand singletools, named asekanos catalog --alllists them. It never names a connection: each team’s own is used.- Ekanos’s own Knowledge tools are granted by name in
tools.tools(never by a mode or a product):search_knowledgeandread_knowledge_articleread the team’s collection and the General collection, andpropose_knowledge_articledrafts an article for the team’s collection — a write, so it waits for approval unlesspolicysays otherwise. The agent never chooses a collection: Ekanos uses the team it runs in. policysays, per tool, whether a call runs on its own (auto) or waits for a person (approve). Reads default toauto, writes toapprove. Leave a tool out oftoolsto forbid it.skillsare skill slugs from the source or the platform, at most 50, counting theskills/foldersapplypushes. Seeskills.connectionssays whose connection each product uses.owner: "team"is each team’s own;team: "required"keeps the agent from running until the team connects it,"optional"adds its tools once it does. A product with no entry is team-owned and optional.owner: "source"is one connection the Source admin makes for every team (apps connect), used only by this provided agent and limited per team byroutes. The agent needs it: a team’s copy doesn’t run until the Source connection is made and a route maps events to that team, andteams agents listnames which is missing. If the Source connection can’t be used, the agent falls back to the team’s own connection when it has one, andteams agents listsays so.applyrefuses it for an integration that does not declare a Source connection, andmcpServerswithowner: "source"are still refused.mcpServersdeclares remote MCP servers the agent uses, with the sameowner/teamchoice. A team-owned one is added to each team when it turns the agent on, and the team signs in. Its tools reach the model asmcp__<key>__<tool>;toolEffectssays which only read, and anything unlisted counts as a write. Teams cannot change those effects.teamCustomizationsays what a team may add on top. Every switch is off unless you turn it on:skills(its own skills),mcpServers(its own MCP servers),integrations(more of its connected products — needs acustomgrant),narrow(drop tools, or make them ask first; never loosen). A team never changes or removes what the template set.baseVersionis the version the file was pulled or last applied at.applyrefuses (invalid_state, exit 7) when someone has stored a newer version since, so two people never overwrite each other unseen;--overwritereplaces it anyway. After a successful apply the CLI updatesbaseVersionin the file.
validation, exit 3), naming each one.
agent.json doesn’t carry triggers or links yet. Each team sets its own in the app, or a Source admin sets them for a team with teams triggers and teams links.
Testing a draft
agents test ships in @ekanos/cli 0.11.0, together with runs,
approvals, skills, reviewers and
the team agents commands.agents test runs the agent’s latest version, even an unpublished draft, on one team, without publishing it. No other team sees the draft.
- The run uses the same executor, tool grant, policy, approvals and audit as a real one, and is recorded on the team’s copy of the agent.
runs listandruns showmark it withdraftTemplateVersion, the version it ran. - Every write waits for a person in a test run, whatever the draft’s policy says. Only
approveoverrides are kept, and handing work to another agent waits too. - A draft can narrow what the agent may call, never widen it. Every call is still checked against the team’s stored agent, so a tool only the draft grants is refused.
- The team must have the agent turned on (
ekanos teams agents enable), which needs at least one published version. Test a brand-new agent on a pilot team after its first publish. - Use a dedicated test team: its reply drafts appear in that team’s Approvals inbox and aren’t labelled as tests yet.
--prompt "…"or--input <file.json>is required.--inputgoes to the run as untrusted trigger data, which is how you simulate an event.--followstreams the run and stops when it ends, when it waits on an approval, or after 15 minutes. It exits0either way, so readrun.statusfrom the output.
Flags
apply: don’t push the skills/<slug>/ folders beside agent.json, and
don’t add them to the agent’s skills.publish / rollback (and an edit’s --publish): you also confirm, as
yourself, what the agent may use on every team running that version that was
never confirmed. A team that had confirmed needs nothing: the publish keeps it
confirmed, in your name. --yes never implies it.publish / rollback: confirm without a prompt. Required in --json or
non-interactive runs, because publishing changes what every team running the
agent does at once.Who can do what
Either seat on the source can list, read, pull and apply: an applied version is a draft until it is published. Only the source’s admin publishes, rolls back, archives, unarchives and runstest (forbidden, exit 5, for a developer seat). Pushing skill folders is Source-admin only too, so a developer applying an agent that has a skills/ folder gets SOURCE_ADMIN_REQUIRED: pass --no-skills and have a Source admin run ekanos skills push. Team counts in list and show are for the source’s admin.
Output
list: data is { host, source, viewer, templates }. show: { host, source, viewer, template }, where template adds body (the latest version) and versions. apply, publish and rollback: { host, source, outcome, version, template, teamsUpdated } (publish and rollback add access: { confirmed, needed, held }. confirmed and needed are lists of { team, agent, runsAs, you }: the teams --confirm-access confirmed as you, and the teams that lost their confirmation (only a publish with no publisher recorded). held adds version and hold to each: the teams pinned to another version, and what this one would add to theirs), with outcome one of created, updated, unchanged, published or rolled-back, and version the one this call stored or published. apply adds skills, the skill folders it pushed. archive and unarchive: { host, source, outcome, template }, with outcome one of archived, unarchived or unchanged. An archived agent answers apply, publish, rollback and teams agents enable with TEMPLATE_ARCHIVED. test returns { host, source, team, runId, agent, draftTemplateVersion }; with --follow it returns { host, started, source, team, run, toolCalls, approvals, events }, the same shape as runs show.
skills
A Source’s skills, held by Ekanos. A skill is a folder in the format Claude Code uses: aSKILL.md with name and description frontmatter, plus optional references/ and assets/. An agent sees each of its skills by name and description, and loads one when the task calls for it.
Things to know:
- A push is live at once. There is no draft and no publish step: every agent that names the skill reads the new version on its next run. Test a big change with a new skill slug first.
- The whole folder is read at run time. Loading a skill gives the agent the
SKILL.mdbody and a list of the folder’s other files, and it opensreferences/and other text files on demand. Binary files are listed but not read as text. - The slug is
namewhen it is lowercase with hyphens, and the folder’s name otherwise. - Limits: 100 files, 1 MB per file, 3 MB per skill, a 64-character name and a 1,024-character description. A
scripts/folder is refused, because executable skills can’t be pushed from the CLI yet. - Platform skills are Ekanos’s own: any agent may name them, and you can’t push them.
ekanos agents applypushes an agent’sskills/<slug>/folders as Source skills for you. A template may only name Source and platform skills. A team’s own skill reaches a provided agent once it is attached on that team, in the app or withekanos teams agents skills <team> <key> add <slug>, and only when the template’steamCustomization.skillsis on.
--json, list returns { host, source, team, skills }, show returns { host, source, skill, files, versions }, and push returns { host, source, outcome, skill, changes }, with outcome one of created, updated or unchanged and changes as { added, changed, removed, metadata }. archive and unarchive return { host, source, team, outcome, skill }, with outcome one of archived, unarchived or unchanged.
Who: either seat can list, show and pull the Source’s skills. Pushing, archiving, and anything with --team, needs a source_admin seat (forbidden, exit 5). Each push, archive and unarchive is recorded in the Admin Audit log.
knowledge
A Source’s Knowledge base: markdown articles Ekanos keeps for you, with nothing to sign up for elsewhere. Each team has its own collection, and the Source has one more, General, that every team reads (its members in the app, and its agents grantedsearch_knowledge). Agents search it with the search_knowledge and read_knowledge_article tools (see agent.json), and team members read and edit it in the app under Agents › Knowledge.
Things to know:
- A push is live at once: the next
search_knowledgecall finds it. Every change keeps the earlier version in the article’s history. - A push deletes only with
--prune. Each push records which folder an article came from: the folder as you name it from the project directory (docs/bank-a), so push it from the same place each time.--prunethen deletes the articles an earlier push of that folder made whose files are gone — and nothing else: never an article written in the app or by an agent, never another folder’s, and never one edited in the app since it was pushed (those are listed as kept). Articles pushed before Ekanos recorded the folder are never pruned until a push of that folder includes their file again; delete the rest in the app. It lists what it would delete and asks first; a script or agent run needs--yes, and is refused before anything is written. - Agents read, and only propose. An agent granted
propose_knowledge_articledrafts a new article or a revision for its own team; the change waits for a person’s approval like any other write. No agent writes General. - Limits: 300-character titles, 200,000-character bodies, 30 tags, 50 articles per request (the CLI batches for you).
--json, list returns { host, source, team, articles }, push returns { host, team, origin, results } with each result’s status one of created, updated, unchanged or refused (with --prune, also pruned and keptEdited, each a list of { slug, title, version }), search returns { host, source, team, query, results }, and pull returns { host, team, dir, files }.
Who: a source_admin seat (forbidden, exit 5, otherwise). On the team side, knowledge.view reads a team’s collection and General, and knowledge.manage edits the team’s; owners, admins and members hold both by default.
runs
Run and inspect a team’s agents. A run started here is the same as Run now in the app: it runs as the agent’s creator, under the agent’s own tool grant, policy and approvals, so writes still wait for a person. It is recorded as started by you.--follow (on start) streams the agent’s messages and tool calls, and stops when the run ends, when it waits on an approval, or after 15 minutes. It exits 0 in every case, so read run.status (running, awaiting_approval, completed, failed or cancelled).
With --json:
startreturns{ host, source, team, runId, agent, draftTemplateVersion }.listreturns{ host, source, team, runs }. Each run hasid,agent,status,trigger,agentVersion,draftTemplateVersion(set on anagents testrun),startedBy,startedAt,finishedAt,stopReasonanderror.cancelreturns{ host, source, team, run }. A run that already ended is refused withRUN_FINISHED.showreturns{ host, source, team, run, toolCalls, approvals, events }.runaddsinput,output,transcript,turnsandusage. Each tool call is{ toolCallId, toolName, effect, ok, error, authorizedVia, connection, createdAt }, whereeffectisreadorwrite,authorizedViaisauto(the policy let it run) orapproved(a person approved it), andconnectionis whose connection an integration call ran on:source(the Source connection, limited to the team’s routes),team, orperson(the person the agent runs as).connectionisnullfor a call that isn’t an integration call, and for calls recorded before the field existed.
source_admin seat on the team’s Source. A developer seat gets forbidden (exit 5). Each run start and cancel is recorded in the Admin Audit log.
approvals
What a team’s agent runs are waiting on, and the decision. These are the same approvals the team sees under Agents › Approvals; whoever decides first settles it for everyone.
A provided agent’s approvals are decided with the authority a team’s agent manager has. A team’s own agent acts with its creator’s connections under the team’s policy, so you decide its approvals only as a member of that team: one who manages its agents decides any of them, one who reviews agents only its reply drafts. Anyone else gets
NOT_A_TEAM_APPROVER (exit 5), and its hint names who can decide it.
A seat holder who is not the Source’s admin (a developer) can use approvals too, with exactly the authority they hold themselves, as in the app: a member who manages the team’s agents decides any of its (non-personal) approvals; one who reviews them, or a reviewer the Source admin named whose reach covers the team (reviewers; provided agents’ drafts only), decides reply drafts; a personal agent’s approval is its creator’s. list then shows only those (scope: "yours" with --json), never the Source admin’s view. The first decision wins: a second is ALREADY_DECIDED.
With --json, list returns { host, source, team, approvals } and a decision returns { host, source, team, approval }. Each approval is { id, runId, agent, toolName, args, replyDraft, status, decidedBy, decidedAt, note, editedArgs, expiresAt, createdAt }, with status one of pending, approved, rejected or expired.
Who: any seat on the team’s Source — a Source admin decides every one; anyone else only what they may decide (above). Each decision is recorded in the Admin Audit log under your name. Team members also decide in the app with agents.manage, or agents.review for reply drafts; reviewers adds people from across the Source.
workflows
A team’s workflows: write one as a file, save it, turn it on, run it, and decide the approvals its runs wait on. A workflow is the same JSON the visual editor saves ({ version, name, scope, trigger, steps, edges }), and it goes through the same checks the editor runs. Every command takes --team <slug>; a workflow is named by its id or, when it is the only one with that name, by its name.
What a saved workflow goes through
apply runs the editor’s save: the definition’s shape, each tool step’s effect against the tool registry, the security review of every Custom Code step’s exact source, and the rule that every write waits behind an approval gate. A definition that fails any of these is refused with INVALID_DEFINITION (exit 3) and nothing is saved. Data-wiring problems (a step reading an output that doesn’t exist) are saved as warnings; enable refuses until they are fixed. Changing a Custom Code step of a workflow that is on is refused: pause it, apply, and turn it on again.
enable re-checks everything. A Custom Code step that writes or reaches a host outside the team needs a person’s approval as well as the review: at a terminal the CLI shows what it reaches and asks; a script gets exit 3 with that list, and passes --confirm-access to approve it as you.
Who can do what
Asource_admin seat on the team’s Source, with the Workflows Feature on for the Source (otherwise WORKFLOWS_EXPERIENCE_OFF, a code that keeps its historical name, exit 7; only a super-admin turns it on). You act on the team’s workflows as a member who configures its integrations would. A member’s personal workflow runs as them and is theirs alone: it is never listed and naming it is not found. A workflow you create runs its tool calls as you, its creator. Every save, status change, run, cancel and decision is recorded in the Admin Audit log under your name.
With --json: list returns { host, source, team, workflows }; show adds workflow.dsl, workflow.requiresApproval, codeSteps and recentRuns; apply returns { host, source, team, workflow, created, warnings, codeReviews }; enable and disable return { host, source, team, workflow, from }; run returns { host, source, team, workflow, runId, dryRun }, and with --follow the run as runs show gives it, once it ends or waits on a gate (it exits 0 either way; read run.status: running, waiting_approval, completed, rejected, failed or canceled); runs show returns { host, source, team, run, approvals }; approvals list returns { host, source, team, approvals }.
reviewers
Who decides the reply drafts of the Source’s provided agents. A reviewer is one of the Source’s own users, with a reach:source: drafts from every team’s provided agents.team: drafts from one named team’s provided agents.
/reviews on the Source’s domain (Approve, Edit & send, or Reject). A Source-reach reviewer sees each draft labelled with its team. The first decision settles the draft for everyone, and anyone who decides second is told who already did. The team’s own Approvals inbox keeps working as before.
Things to know:
- Reviewers decide reply drafts of provided agents only. A team’s own agents, and any other kind of approval, stay with the team.
- The person must already belong to one of the Source’s teams. Anyone else is refused with
USER_NOT_IN_SOURCE. Reach lapses when they leave the Source’s last team. - A Source admin can also manage reviewers in the app, under People & teams › Reviewers.
--json, list returns { host, source, reviewers }, each { userId, email, name, reach, team, createdAt }. add returns { host, reviewer, created }, where created is false when they already reviewed at that reach. remove returns { host, removed }, the number of reaches removed. --team is required with --reach team and refused with --reach source.
Who: a source_admin seat (forbidden, exit 5, for a developer seat).
use
Set this project’s publish target to a source you hold a seat on.Flags
Behavior
The source slug is a required positional argument (missing → usage error, exit 2), anduse must run inside a project. The CLI verifies that you actually hold a seat on that source — a typo or stale slug is refused with forbidden (exit 5) and your real seat list in the hint.
On success use writes source to ekanos.json. It writes host only if ekanos.json has no host yet; an existing host is never overwritten.
status
Read the login state, project configuration, and submission history.Flags
Block until the project’s current submission (its slug at the
package.json
version) reaches gated, dev, or rejected. It polls every 5 seconds at
first and backs off to every 30. Requires a live session and a source in
ekanos.json. Changes the exit-code contract (see below). --wait is the
same flag.Human mode only. Expand “OTHER INTEGRATIONS IN SOURCE” from a summary line
into the same version/state/age/findings table.
Exit codes
Normally:0 whenever the report could be assembled — being logged out is reported as authenticated: false, not an error.
With --watch: 0 when the submission reaches gated or dev; 10 (gate_failed) when it is rejected, with the gate’s findings in data.findings; 11 (timeout) when --timeout runs out first (the gate may still answer, and a later status --watch picks it up). No session exits 4; no project or no source exits 9.
Four sections
Session — Your server-side identity (orauthenticated: false if not logged in).
Project — The ekanos.json in --dir (omitted if no project exists). In an experience project it also says kind is experience and lists the integrations the experience uses, each with its name, the line it pins, its modes and the operations it may call (data.project.integrations).
Submissions — Your submission history from this source (only when both a session and a source exist).
Setup in the source — For an integration, where it stands in your source, one step per line, then the one thing to do next (data.setup):
If the host cannot report setup (an older host, or a failed request), the line says so and
data.setupUnavailable carries the reason.
publish
Validate, pack, and submit the integration.publish takes package names or --all and plans them in dependency order; see Publishing from a repo.
Flags
Ekanos source slug. Falls back to
ekanos.json’s "source" field. When
passed explicitly, acts as consent and skips the interactive confirm.Run the local gate and pack, and send nothing. For an integration that means
the same findings pass and the same pack as a real publish, with no login or
source needed; the result lists the packed files. For an experience, and for
every package in a repo, it builds the artifacts under
.ekanos/publish/<name>-<version>/. An experience can only be published this
way today.Integration only: after submitting, wait for the gate verdict and print it
with its findings. Exits
10 (gate_failed) if the version is rejected.Repo only: publish every package. Alternatively name packages:
ekanos publish acme-cms acme-news.Skip the interactive confirm when the source is implicit (from
ekanos.json)
and you hold multiple developer seats. No effect when --source is explicit
(already consent) or when you hold exactly one seat (nothing to disambiguate).Publish-target verification
Before packing or submitting anything, the CLI fetches your seat list and applies safety rules:
For agents and CI: pass
--source explicitly or run ekanos sources first to choose deliberately. Never pass --yes through an ambiguity you haven’t resolved.
What it does
- Requires a stored session (exit 4) and runs the schema-skew gate (exit 9)
- Refuses if the host has declared this CLI version unsupported (exit 9)
- Resolves the source (
--source, elseekanos.json); none →validation(exit 3) - Runs the same findings pass as
validate, withproject.host-compiler-rulesescalated fromwarntoerror. Any error-severity finding refuses the publish withgate_failed(exit 10) and the findings indata.findings - Fetches your seat list and applies the verification rules above
- Packs a gzipped tarball of
ekanos.json,package.json,README.md, roottsconfig*.jsonand vitest config, and everything undersrc/(4 MiB limit) - Submits it to the host at the
package.jsonversion and returnsdata.source: { id, slug, name },submissionId, andstate
0 success, 2 usage, 3 validation, 4 auth required, 5 forbidden, 6 not found, 7 version already submitted, 8 network, 9 precondition failed, 10 gate failed.
An experience’s lockfile and the host’s npm
The host rebuilds an experience from its source withnpm ci, run by one pinned npm (11.19.1), never the npm on your machine or on the gate’s runner. The CLI carries that same npm inside its own install, so your project’s npm and npx stay your own. It uses it to write the standalone lockfile in a pnpm workspace, to install from your own package-lock.json or npm-shrinkwrap.json in the clean room, and to pack. A clean ekanos publish --dry-run therefore means the host’s rebuild installs too. Publishing an experience needs Node ^20.17.0 || >=22.9.0, the range that npm runs on.
Before it packs, ekanos publish asks the host which npm it rebuilds with. If that is not the npm this CLI carries, it stops with a precondition error (exit 9) and submits nothing, so the version stays free: run ekanos upgrade and publish again.
Different npm versions write different lockfiles, and a lockfile another npm wrote can leave out entries the host’s npm requires, such as an optional peer of a WebAssembly build. A package.json edited after its lockfile fails the same way. The CLI refuses either before submitting, with a precondition error that gives the command that rewrites the lockfile with the host’s npm:
package.json asks for a different one.
names
Request and check a global package name. A restricted package is named under your source’s namespace and needs no claim; a package published withavailability.mode: "global" needs a super-admin-approved name. See Package names and namespaces.
claim files the request and prints its status. status reads your source’s latest claim for the slug: none, requested, approved or rejected, with the reviewer’s reason when there is one.
Flags
upgrade
Move the toolchain to a coherent target version with verify-and-rollback.Flags
Read-only. Report current vs. target versions and exit 0. Changes nothing.
Safe to run anytime, including from CI.
Skip the interactive confirm. Required outside a real TTY; without it a
non-interactive run fails with
validation (exit 3) and changes nothing.Ekanos host for fetching the target version set. Falls back to host
resolution. When no host session is available, the CLI uses the npm registry
instead.
Coherence guarantee
upgrade resolves a coherent target version set: @ekanos/sdk, @ekanos/ui, and @ekanos/integration-schema must all share one version, and the SDK release must pin exactly that schema. A mid-publish registry state is refused rather than turned into an uninstallable tree.
Verification
On success, the CLI:- Snapshots
package.json,pnpm-workspace.yaml(when present) and the lockfile - Installs the target versions of the toolchain packages that are direct dependencies of the project (transitive ones follow from whatever pins them and are reported in
data.skippedTransitive) - Verifies with
ekanos validateand yourtestscript - Rolls back
package.json,pnpm-workspace.yamland the lockfile, then reinstalls to restorenode_modules, on any failure. The error code names the step:upgrade_install_failed(exit 9),upgrade_validate_failed(exit 3), orupgrade_test_failed(your test script’s exit code), with the step’s output indata.output. The reinstall is frozen to the restored lockfile (pnpm install --frozen-lockfile,npm ci, …) and runs at the workspace root.data.rollbackreports it. If the reinstall fails too,upgradesays so:node_modulesno longer matches the lockfile, and the hint gives the command to repair it by hand
Package manager and workspaces
upgrade installs with the package manager the project uses. It looks from the project up to its workspace root for a lockfile (pnpm-lock.yaml, yarn.lock, bun.lock, package-lock.json), then the packageManager field in package.json, then a pnpm-workspace.yaml, and falls back to npm only when none of them is there. Inside a pnpm workspace package it runs pnpm add in the package and never npm. data.packageManager names the manager and its root.
At a repo root (ekanos.json with "kind": "repo"), upgrade moves the whole repo to the target in one run: the root and every package that depends on the toolchain, against the one lockfile. It runs ekanos validate in each integration package and the test script in each package that has one. If any step fails, every package.json is rolled back. data.packages lists what it covered.
Agent-context files (AGENTS.md, CLAUDE.md, the Claude Code skill) are regenerated from the newly installed CLI’s templates, byte-compared against what the pre-upgrade CLI would have rendered. Files you haven’t touched are refreshed; edited ones are left alone and reported as needing manual attention.
A stale AGENTS.md teaches an agent yesterday’s contract, which is as harmful as a stale binary.
Build scripts in pnpm-workspace.yaml
pnpm 10+ refuses dependency build scripts nobody has answered, and a new toolchain release can add some. Before it installs, upgrade answers them in pnpm-workspace.yaml under allowBuilds with the same answers ekanos init scaffolds (esbuild: true, @parcel/watcher: false, @swc/core: false). Your own true or false, with or without a trailing comment, is kept, as are your comments and line endings. The file is restored if the upgrade rolls back.
upgrade leaves the file alone, and prints which file to edit and what to put under allowBuilds, when:
- The project sits inside a monorepo whose parent directory already has a
pnpm-workspace.yaml. Creating one in the project would turn it into a second workspace root, so it never does. allowBuildsis present but is not a plain block mapping (flow style such asallowBuilds: {}, for example).
--json mode the outcome is under data.buildScripts (answered, and skipped when it left the file alone).
Upgrade the CLI and harness together
@ekanos/cli 0.33.2 needs @ekanos/harness 0.36.2 (shell contract 8). ekanos dev stops with an explanation if the two do not match, so upgrade both in one step: run ekanos upgrade, which moves the whole toolchain together, rather than bumping one package by hand.
feedback
Report a problem with the CLI or the platform to Vastly: a command that failed unexpectedly, a confusing message, something missing, or something that sent you to the app. Nothing is ever sent on its own: a report is this command, run by you or your coding agent.claude-code-hint line on stderr (written only to coding agents and with --json) carries "report": "ekanos feedback --last-error \"<what you were trying to do>\"", so an agent knows the exact command. Validation and publish-gate failures, which are about your own code, carry no such line.
What a report carries
Never sent: argument values, flag values, file contents, environment values, tokens or any other secret.
--command "<a command line>" is reduced to its path and flag names before anything leaves your machine. Redaction removes bearer tokens, JWTs, API keys, password=-style values, credentials in URLs, long key-like strings and email addresses; do not rely on it, and keep secrets and customer data out of the message.
--last-error reads ~/.ekanos/last-error.json (mode 0600), which holds only the most recent failed command, in the shape above. It is written on failure and read only by ekanos feedback.
Flags
Output
data is { host, source, id, number, kind, redacted, truncated, context }; human mode prints Filed feedback #<number>. feedback list returns { host, reports }, your own reports only, each with its status and, once it has shipped, its fix and Vastly’s note.
Exit codes: 2 no message and no --last-error, 5 feedback is turned off for the Source (FEEDBACK_DISABLED), 8 too many reports in a short time (retry after the Retry-After the host gives), 9 --last-error with no failed command recorded.
When a fix ships
After an ordinary command (notinit, validate, dev, test, login, logout or upgrade), at most every six hours, the CLI asks the host in the background whether a fix for one of your reports has shipped, and prints one line on stderr for each, once:
--json mode. EKANOS_NO_UPDATE_CHECK turns it off with the toolchain notice.
Turning it off for a Source
A Source admin decides whetherekanos feedback reaches Vastly from their Source. It is on until they turn it off; every change is recorded in the Admin Audit log.
ekanos feedback is refused with FEEDBACK_DISABLED and no fix updates are shown.