# Quick start

Install AgenticMind, add a model key and run your first workflow in about five minutes.

Source: https://glamorous-boar.cloudvent.net/quick-start/

---

## Prerequisites

| Tool | Version | Why |
|---|---|---|
| **Python** | 3.11 or newer | Backend API and runtime |
| **[uv](https://docs.astral.sh/uv/)** | Latest | Python package and workspace manager |
| **Node.js** | 20 or newer (22 recommended) | Web IDE toolchain |
| **Git** | Any recent | Cloning the repository |
| **Docker** | Optional | Sandboxed code execution, local deployments, self-hosting |

You also need **one model key**. The simplest is an [OpenRouter](https://openrouter.ai) key: one key reaches Gemini, Claude, GPT, Llama, Qwen and hundreds of other models, and the templates use it by default. Prefer to stay fully local? Use [Ollama](https://ollama.com) instead; no key is needed.

## Install and run

<CodeBlock language="bash" filename="terminal" showCopy={true}>

```
git clone https://github.com/taeefnajib/AgenticMind.git
cd AgenticMind
uv sync                 # Python workspace: every package, editable
npm install             # web IDE
cp .env.example .env    # then add a model key, e.g. OPENROUTER_API_KEY=...

npm run dev             # API on http://127.0.0.1:8000 + IDE on http://localhost:5173
```

</CodeBlock>

Open **http://localhost:5173**. Stop both servers with **Ctrl+C** in that terminal, or run `npm run stop` from any terminal.

<Alert variant="note" title="What the first run does" text="On first launch AgenticMind creates a database under `.agenticmind/` (SQLite, no setup) and a *Hello pipeline* project. The first RAG run also downloads a small local embedding model (about 65 MB) once."/>

## Add your model key

Open `.env` in the repository root and set the key for the provider you use:

<CodeBlock language="bash" filename=".env" showCopy={true}>

```
OPENROUTER_API_KEY=sk-or-v1-...
# or any of:
# OPENAI_API_KEY=...
# ANTHROPIC_API_KEY=...
# GEMINI_API_KEY=...
```

</CodeBlock>

Restart the API after editing `.env` (Ctrl+C, then `npm run dev`). Alternatively, add keys in the IDE under avatar → **Settings** → **Secrets**: they are encrypted at rest and never shown again, and no restart is needed.

Node configurations never contain the key itself. They reference it by name, for example `{"$secret": "OPENROUTER_API_KEY"}`, and the value is resolved only while a run executes.

## Your first run in 60 seconds

1. The *Hello pipeline* project is open. It is four nodes: **Manual Input** → **Text Template** → **Text Transform** → **Output**.
2. Open the **Run inputs** tab at the bottom, set `name` to `Ada`.
3. Click **Run** in the toolbar. Nodes turn green as they finish; the **Output** tab shows `HELLO, ADA!`.
4. Open the **Trace** tab to see every event: `run_started`, `node_started`, `node_succeeded`… with durations.

## Let Wingman build something

Click the ✨ button in the bottom-right corner and type:

> Take any question and answer it yes or no, with a one-sentence reason.

Wingman adds a Manual Input, an LLM node, and two outputs, validates the graph, and saves it as a new revision. Press **Run** (or ask in the **Chat** tab). Don't like it? Press **Undo**. See [Wingman](/wingman/).

## Try a template

Click **New** in the toolbar to pick from 24 templates. Good first choices:

- **RAG answers with citations**: upload `examples/data/employee-handbook.md` in *Load documents*, choose **Run → Index report**, then ask in **Chat**: *"What is the hotel limit per night?"*
- **Agent with tools**: index the same file, then ask *"How many leave days do 3 employees get in total?"* and expand *Used N tool calls*.
- **Ask your database**: upload `examples/data/sales.sqlite`, select it in *Sales database*, ask *"Which product category had the most revenue in 2025?"*

The full list is on [Templates](/templates/).

## Other ways to run it

### One container with Docker

<CodeBlock language="bash" filename="terminal" showCopy={true}>

```
docker compose up --build     # http://localhost:8000 — API + built IDE, SQLite in a volume
```

</CodeBlock>

See [Self-hosting](/self-hosting/) for PostgreSQL and extra run workers.

### Command line only (no UI, no server)

<CodeBlock language="bash" filename="terminal" showCopy={true}>

```
uv run agenticmind nodes
uv run agenticmind validate apps/api/src/agenticmind_api/templates/hello-pipeline.json
uv run agenticmind run apps/api/src/agenticmind_api/templates/hello-pipeline.json -i name=Ada --events
```

</CodeBlock>

See [CLI](/cli/).

### Different ports

If a port is taken, `npm run dev` says so and suggests a free one:

<CodeBlock language="bash" filename="terminal" showCopy={true}>

```
npm run dev -- --web-port 5174 --api-port 8001
```

</CodeBlock>

`npm run dev:api` and `npm run dev:web` still start each server on its own.

## Verify the installation

<CodeBlock language="bash" filename="terminal" showCopy={true}>

```
curl http://127.0.0.1:8000/api/health    # {"status": "ok", ...}
npm test                                 # Python tests + web typecheck + web unit tests
```

</CodeBlock>

Something not working? See [Troubleshooting](/troubleshooting/).

## Next steps

- [Your first workflow](/first-workflow/) walks through building three apps by hand.
- [A tour of the IDE](/interface/) explains every panel.
- [Core concepts](/concepts/) gives you the vocabulary.
