# kyvvu init

**What you'll learn:** How `kyvvu init` scaffolds a new agent project.

***

## Usage

```
Usage: kyvvu init [PROJECT_NAME]

Arguments:
  PROJECT_NAME  Project directory name (optional; uses current directory if omitted)
```

## What it does

Scaffolds project files — no authentication required:

* `agent.py` — demo agent with three decorated steps
* `requirements.txt` — `kyvvu` dependency
* `.env.example` — environment variable template
* `.gitignore` — standard Python gitignore
* `README.md` — project documentation

Policies are assigned separately via the dashboard (Manifests page) or CLI (`kyvvu assign-manifest`).

## Examples

### New directory

```bash
$ kyvvu init my-agent
✓ Created my-agent/

Next steps:

    cd my-agent

    # Install requirements:
    pip install -r requirements.txt

    # Set your key:
    # (run `kyvvu register` if you have none)
    cp .env.example .env       # add your KV_API_KEY
    # or: export KV_API_KEY=your-key

    # Run the agent:
    python agent.py

To assign compliance policies, go to the dashboard:
    Manifests page → select a manifest → assign to your agent
Or use the CLI:
    kyvvu list-manifests
    kyvvu assign-manifest --agent-id <id> --repo-id <id> --manifest <path>
```

### Current directory

```bash
$ mkdir my-project && cd my-project
$ kyvvu init
```

If the directory is not empty, you'll be asked to confirm.

***

## Next steps

* [Your First Agent](/getting-started/first-agent.md) — run the demo agent and understand the output
* [Manifests](/policy-authoring/templates.md) — assign compliance policies to your agent
* [kyvvu serve](/cli-reference/serve.md) — run a local policy evaluation server


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kyvvu.com/cli-reference/init.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
