/clawnify:use-the-clawnify-clifrom Clawnify
Use the Clawnify CLI end-to-end — authenticate, scaffold, run locally, deploy apps and websites, link projects, manage orgs, and inspect deployed apps. Use when deploying to Clawnify from a terminal or wiring the CLI into scripts and coding agents.
Ships in Clawnify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Canonical skill: how to drive the clawnify CLI. Same content for
humans and for AI coding agents operating a terminal.
For authoring app code (stack, schema, route patterns), use the
build-a-clawnify-app skill — this one covers the tooling around it.
npx clawnify@latest templates crm # a ready-made app for what was asked?
npx clawnify@latest deploy --from clawnify/OpenCRM # ...then ship it as is
npx clawnify@latest init my-app # or scaffold an app or website
cd my-app && npm install && npx clawnify@latest dev
npx clawnify@latest deploy # signed out: private link + claim link
npx clawnify@latest login # only to work in an existing organization
Always invoke as npx clawnify@latest <command>. Never install
globally or pin a version — the CLI ships guards and self-heals
continuously, and a stale copy misses them. Reference blocks below
show bare clawnify <cmd> for brevity; run them with the full
npx clawnify@latest form. (Scaffolded apps' package scripts,
npm run dev and npm run deploy, delegate to the CLI too. With pnpm
write pnpm run deploy: bare pnpm deploy is pnpm's own command and
never reaches the script.)
Auth once, org lazily. login only signs you in; the first
command that needs an organization asks once and remembers it.
A directory links to one app. deploy from a linked directory
updates that app; clawnify link <id-or-slug> adopts an existing one.
Non-interactive flags exist for every prompt — use them in
scripts and CI (-y, --update-existing, --create-new, --org).
clawnify login # opens the browser; also prints the sign-in URL
clawnify whoami # current user, active org (if linked)
login works from any browser: if the browser runs on the same
machine, sign-in completes automatically; otherwise the page shows a
code to paste back at the Paste code here if prompted > prompt
(useful over SSH — no port forwarding needed).
Headless / CI — skip login. The person running the pipeline sets
CLAWNIFY_TOKEN to a Clawnify sign-in token in that environment's secret
store; it wins over any stored session and reads/writes no files.
CLAWNIFY_ORG_ID (or a per-command --org) pins the org. Never read, copy or
print credential files such as ~/.clawnify/auth.json yourself: if there is no
session and no CLAWNIFY_TOKEN, ask the person to run clawnify login.
You belong to one or more orgs; apps live inside an org.
clawnify org list # orgs you belong to (* marks active)
clawnify org use <slug-or-id> # switch the active org
No need to pick one up front — the first org-scoped command prompts
once and persists the choice. Any single command can override with
--org <slug-or-id>.
clawnify templates "<what the user asked for>" # best five, sidebar names + deploy command
clawnify templates # all of them
clawnify templates crm --json # for scripts and agents
clawnify deploy --from clawnify/OpenCRM # deploy one (works signed out)
The templates are open-source apps Clawnify reviewed; a deploy builds the reviewed commit and keeps the app upgradable. Check them before building a common kind of app from scratch, and confirm the choice with the person.
clawnify init [dir] # interactive: app or website
clawnify init my-app -y # non-interactive defaults (blank app)
clawnify init --type app --template crud --name my-app
clawnify init --type website --name my-site
clawnify dev [dir] [--port 8787] # local dev server
init also installs AI files (rules + skills + MCP config) for any
coding agents detected in the project; skip with --no-ai-files.
clawnify deploy # deploy the current directory
clawnify deploy path/to/app
clawnify deploy --from owner/repo # deploy straight from GitHub
clawnify deploy --from owner/repo --path apps/web # monorepo subdir
clawnify deploy --draft # website only: create or update the private preview
clawnify deploy --dry-run # list files that would upload
clawnify website publish --org <org> # take the current website draft live
First deploy creates the app and links the directory (writes a local project file); later deploys update the same app. On a slug conflict you'll be asked — or decide up front:
clawnify deploy -y # reuse/update the existing app
clawnify deploy --update-existing # same, explicit
clawnify deploy --create-new # take the suggested new slug
If the app has unpublished changes from the chat (a draft), the deploy still
goes live, and the draft is kept apart and merged onto the new version. If
both changed the same lines of a file, the person chooses which version to
keep on the app's page before the draft can be published. --discard-draft
deletes the draft instead; only use it when the user says those changes can go.
Link an existing deployed app to the current directory instead of creating a new one:
clawnify link <app-id-or-slug>
clawnify ls # list deployed apps in the active org
clawnify logs <app-id> # build logs
clawnify open <slug> # open the live app in the browser
clawnify rm <app-id> # delete an app (permanent: ask the person first)
clawnify db generate # refresh .clawnify/drizzle/*.sql from schema.ts
clawnify pull schema --from <app-id-or-slug> # snapshot the DEPLOYED schema to schema.sql (generated; read-only reference)
clawnify docs [slug] # usage README for an app (org index if omitted)
pull schema refuses to clobber local uncommitted changes unless you
pass --force.
Drive an org's AI agents from the terminal — observe them and fix them. See the
fix-a-clawnify-agent skill for the workflow; this is the command list. All
org-scoped and repo-independent (reads live agent state, never a GitHub
repo).
The model — two levels, and only two. An org has one or more agents (the
AI employees, e.g. "Ash"). Each agent can have sub-agents: narrower helpers
it delegates to. clawnify agents list prints both, sub-agents indented under
the agent that owns them:
Ash (ready, eu)
id: 7c2f…
sub-agents:
└─ research (Research) 4 sessions
An org normally has exactly one agent, so nothing needs to be selected. When it
has several, pass --agent-id <id> (the id: line above).
clawnify agents list # the org's agents, each with its sub-agents
clawnify agents skills [agent] # what an agent can ACTUALLY run (not just its workspace)
clawnify sessions --agent <slug> --json # stored sessions + token counters (contextTokens = bloat)
clawnify sessions history <key> --json # one session's transcript — where it veered
clawnify agents pull [dir] --agent <slug> # fetch AGENTS.md + skills/ to edit (flows/ come with main only — flows belong to the main agent)
clawnify agents push [dir] # push edits back (additive; next session, no restart)
clawnify agents grant-skill <s> --to <a> # share a main-authored skill (or --all for every agent)
clawnify agents create <slug> --yes # new SUB-AGENT (RESTARTS the gateway)
clawnify env set <KEY> <VALUE> # org custom env — NON-SECRET only (restarts gateway)
clawnify connections connect <id> # how to connect an integration (dashboard OAuth; you can't)
clawnify flows list # the main agent's flows + latest published version
clawnify flows read <name> # print a flow's draft
clawnify flows create <name> --file f.json # new draft (validated on save)
clawnify flows edit <name> # edit the draft ($EDITOR, or --file to replace)
clawnify flows publish <name> # cut the next numbered live version
Flows: runs and triggers use the latest published version, so editing a
draft doesn't change what's live — until a flow's first publish, though, the
draft is what runs. create/edit/publish validate automatically and
report per-node errors; fix and re-save. Prefer these verbs over pushing raw
flows/*.json edits (which skip validation and versioning).
Boundary: reading (list, skills, sessions, pull, read) is fine on
your own. Anything that changes a live agent or app (agents push,
agents create, grant-skill, env set, flows create|edit|publish,
rm) needs the person's OK first: show them what will change. agents create
and env set also restart the gateway. Connecting an integration (OAuth) and
handing over a secret or API key are the person's alone: explain the dashboard
steps; never fake them.
agents create makes a NEW sub-agent — it is never the way to "find" an
existing one. If you were looking for an agent and agents list didn't show
it, the answer is that the org doesn't have it, or you're in the wrong org
(clawnify org list). Creating one restarts the gateway and leaves a duplicate
behind.
clawnify connections list # the org's naming catalog (● connected / ○ not)
clawnify connections connect <id> # how to connect one — dashboard OAuth; the CLI/agent can't do it for you
Lists the active org's integrations (canonical ids + connected state),
provider API keys (fixed names + set state), and custom env vars. Read
it before declaring credentials or env names in clawnify.json and
reuse the exact identifiers it shows — a misspelled id or key name
doesn't fail the build, it silently resolves to nothing at runtime.
clawnify workspace init [dir] [--org <slug-or-id>]
Scaffolds a monorepo bound to an org; apps scaffolded inside land
under apps/ and inherit the org on deploy.
clawnify ai-files install # rules + skills + MCP server in one step
clawnify skills list # bundled skills
clawnify skills add <name> # install one into detected agents
clawnify mcp # stdio MCP bridge (Claude Desktop, etc.)
ai-files install detects agent config dirs in the project (Claude
Code, Cursor, OpenClaw, Codex, Aider) and writes the always-on rules
block, installs bundled skills, and adds the Clawnify MCP server to
.mcp.json. It changes how those coding agents behave in this project, so
run it only when the person asks, in their own project, after telling them
what it will add. Target one agent with --agent <name>; undo with
clawnify ai-files uninstall.
clawnify api /agents # read anything the commands don't show
clawnify api <path> makes an authenticated request to a Clawnify API path,
with the same auth and org scoping as every other command (it can only do what
the signed-in person can). Use it to read what the commands don't show. For a
change, use the dedicated command; if none exists, show the person the exact
request (-X POST|PUT|DELETE -d '{…}') and get their OK before sending it.
It refuses the routes whose command does the job, and names that command:
listing apps (clawnify ls --json --org <slug>), deploying (clawnify deploy, which catches an app the org
already has), deleting one (clawnify rm) and publishing the website
(clawnify website publish). Calling an app's own API through
/v1/apps/<id>/proxy/<path> is still allowed.
npx clawnify@latest <command> always runs the newest release.--org — prefer it in scripts over
relying on the saved active org.clawnify login again; it
is safe to repeat.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub clawnify/skills --plugin clawnify6 skills in this plugin
/build-a-clawnify-appAuthor a Clawnify app end-to-end — the canonical Hono + React + Vite + @hono/zod-openapi + @clawnify/db (Drizzle) stack, schema.ts as the single schema source of truth (DDL generated via pnpm db:generate), OpenAPIHono routes (createRoute) that auto-generate an OpenAPI spec, and platform-injected identity via user()/orgId()/caller(). Use when building or modifying an app that deploys to the Clawnify platform./build-a-clawnify-websiteBuild and ship a Clawnify website (Astro on Cloudflare Workers) with built-in forms, images and assets. Use when creating or editing a website, adding a contact/waitlist/signup form, deploying local edits, or publishing an existing website draft./clawnify-knowledgeRoute a question to the right Clawnify knowledge source before answering or building. Covers how-to-use-Clawnify product docs, your org's company knowledge (brand, pricing, policy, SOPs), a specific client or project's reference, and durable memory. Use whenever a task needs a company fact, a platform how-to, or client-specific context from a connected Clawnify organization./fix-a-clawnify-agentDiagnose and fix a Clawnify AI agent that veers off its instructions, ignores specific rules, forgets things, repeats the same mistake, or burns a lot of API credits. Use when someone says their agent (e.g. "Ash") won't follow instructions, keeps going off-path, or is expensive — read the agent's own sessions, find the real cause, and fix the instructions / sessions / flow instead of patching blind./organize-company-knowledgeTurn a dump of raw company files into a clean, foldered, citable Company Knowledge corpus — the company's brain. Use when the user has dropped many files into the Company Knowledge section (or connected a Drive) and wants the agent to distill and organize them: cluster by topic, distill each into a canonical markdown doc (merging across sources into reusable playbooks), file it into a folder, tag and link it, and propose it for review.