Skip to main content
AgentHook is designed to be driven by agents, not humans in a dashboard. The CLI is the agent surface today: any agent that can run shell commands (Claude Code, Cursor, Codex-style agents, n8n exec nodes) can generate media with it. An MCP server and an installable skill pack are coming later — both will be thin wrappers over the same API.

Setup

Install and authenticate once on the machine your agent runs on:
(Keys are created in the console — see Authentication.)

Tell your agent about it

Add a note to your project’s agent instructions (CLAUDE.md, Cursor rules, etc.):

Why this works well for agents

  • Self-describing schemas. agenthook tools (backed by GET /api/v1/tools) prints every argument, type, default, and enum — the agent never has to guess or memorize the API.
  • Local pre-validation. The CLI checks everything deterministically checkable — enum values, prompt length caps, references without the owns_references attestation — before any network call, and fails with a message the agent can read and self-correct from. No credits are spent on malformed requests.
  • Submit–poll handled for you. run blocks until the media is ready and prints the URL — one command, one result, no polling loop for the agent to write.
  • Searchable memory. agenthook list --search "..." full-text-searches past runs (prompt, enhanced prompt, transcript), so an agent can reuse yesterday’s video instead of paying to regenerate it.

No CLI? Use HTTP directly

Everything the CLI does is plain REST — agents that only speak HTTP can hit the API directly:
Then poll GET /api/v1/runs/{run_id} until completed. See the Quickstart for the full flow.

Coming later

  • MCP server — the same three tools over the Model Context Protocol, for MCP-native clients.
  • Skill pack — installable agent skills that wrap the CLI with usage guidance.
Both will read their schemas from GET /api/v1/tools, same as the CLI — one schema source, no drift.