Quickstart
Go from an empty directory to a running agent. Scaffold a typed project, point it at a model, run it locally, then deploy by connecting a repository.
#Prerequisites
Kraken AI projects are standard TypeScript packages. You need a working local toolchain and one model provider key.
- A current Node.js LTS — the SDKs and CLI are distributed as ES modules and target a modern Node runtime.
- A model API key — the default template uses a Google Gemini model, so a Google API key is sufficient to start. You can switch providers when you scaffold.
- A package manager —
pnpm,npm,yarn, orbun. The scaffolder auto-detects which one invoked it.
#Scaffold a project
The @kraken-ai/create-agents scaffolder generates a complete, typed multi-agent project. Run it with your package manager of choice.
$ pnpm create @kraken-ai/agents my-projectnpm create @kraken-ai/agents my-project
Run with no flags for an interactive setup, or pass flags to skip the prompts. Two templates are available:
- market-intel (default) — a multi-agent market intelligence pipeline with human-in-the-loop review, demonstrating connectors, skills, and actions working together.
- starter — a minimal research and review project: a small set of agents, a filesystem connector, one skill, and two actions. This guide uses the starter template.
$ pnpm create @kraken-ai/agents my-project --template starternpm create @kraken-ai/agents my-project --template starter
Use the -m (or --model) flag to choose the model every generated agent runs on. The default is google/gemini-3-flash-preview; google/gemini-3.1-pro-preview and openai/gpt-5.4 are also supported.
$ pnpm create @kraken-ai/agents my-project --template starter --model openai/gpt-5.4npm create @kraken-ai/agents my-project --template starter --model openai/gpt-5.4
Tip
The model provider determines which key you need. A google/* model expects GOOGLE_API_KEY; an openai/* model expects OPENAI_API_KEY. The generated .env.example contains the correct variable for the model you chose.
#Project structure
The starter template produces a single typed package. Agents, connectors, skills, and actions are plain modules — the file name is the identity.
- agents/ — agent definitions. Each module exports one agent; agents can run alone or coordinate as a team.
- connectors/ — how agents perceive and act on systems. The filesystem connector exposes
fs_read,fs_write, andfs_listtools scoped to a data directory. - skills/ — versioned procedures an agent loads on demand. A skill is a directory with a
SKILL.mdfile. - actions/ — structured, typed outputs an agent emits to drive downstream work.
- clients/ — example server-side usage of the
PlatformClientfor calling agents from your own application.
For the vocabulary behind each of these, see Core Concepts.
#Configure your model key
The scaffolder writes a .env.example with the variables your project reads. Copy it to .env and fill in your model provider key.
$ cd my-project
$ cp .env.example .envOpen .env and set the key for the model you scaffolded with. For the default Google model:
GOOGLE_API_KEY=your-google-api-key
# Optional — set these to talk to a deployed platform from the SDK.
# Leave empty for local-only `kraken dev`.
KRAKEN_BASE_URL=
KRAKEN_API_KEY=Important
Never commit .env. The generated .gitignore already excludes it. Keys belong in your local environment or your hosting provider’s secret store.
#Run locally
With dependencies installed and a key in place, the CLI runs an agent on your machine so you can iterate before deploying.
#Deploy
Deployment is repository-driven. You connect a GitHub repository to the platform once, and every push to the default branch builds and deploys your project automatically — no separate deploy command.
For build configuration, environments, and rollout behavior, see Deployment.
#Next steps
- Core Concepts — The platform vocabulary: agents, runs, connectors, skills, actions, memory, triggers, governance, and audit.
- Agents — Define single agents and multi-agent teams, configure models, and wire in connectors, skills, and actions.
- CLI — Reference for the kraken CLI: login, generate, dev, validate, and managing API keys.