> For the complete documentation index, see [llms.txt](https://docs.kyvvu.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kyvvu.com/cli-reference/init.md).

# 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 security 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 security policies to your agent
* [kyvvu serve](/cli-reference/serve.md) — run a local policy evaluation server


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
