> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vaultak.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart - Vaultak Core

> Add runtime security to your AI agent in 5 minutes

## Step 1: Install

\`\`\`bash
pip install vaultak
\`\`\`

## Step 2: Get your API key

Sign up at [app.vaultak.com](https://app.vaultak.com). Your API key is on the API Key tab. It starts with `vtk_`.

## Step 3: Wrap your agent

\`\`\`python
from vaultak import Vaultak

vt = Vaultak(api\_key="vtk\_your\_api\_key\_here")

with vt.monitor("my-agent"):
agent.run()
\`\`\`

Every action your agent takes is now monitored, risk-scored, and logged in real time.

**Node.js:**

```javascript theme={null}
const { Vaultak } = require("vaultak");

const vt = new Vaultak({ apiKey: "vtk_your_api_key_here" });
vt.monitor("my-agent");

myAgent.run();
```

## Step 4: Configure thresholds

\`\`\`python
vt = Vaultak(
api\_key="vtk\_your\_api\_key\_here",
alert\_threshold=30,    # Score >= 30: alert and log
pause\_threshold=60,    # Score >= 60: halt agent, await review
rollback\_threshold=85  # Score >= 85: auto-rollback and halt
)
\`\`\`

## Step 5: Define what your agent is allowed to do

\`\`\`python
vt = Vaultak(
api\_key="vtk\_your\_api\_key\_here",
allowed\_resources=\["/tmp/*", "/data/readonly/*"],
blocked\_resources=\["prod.*", "*.env", "\*.key"],
max\_actions\_per\_minute=20,
)
\`\`\`

Policies can also be created and managed in the dashboard, no code changes needed.

## Response modes

| Mode         | Trigger     | Behavior                                        |
| ------------ | ----------- | ----------------------------------------------- |
| **Alert**    | Score >= 30 | Logs event, sends notification, agent continues |
| **Pause**    | Score >= 60 | Halts agent, queues action for human review     |
| **Rollback** | Score >= 85 | Reverses state using snapshot, halts agent      |

## Works with any framework

\`\`\`python

# LangChain

with vt.monitor("langchain-agent"):
response = llm.invoke(prompt)

# CrewAI

with vt.monitor("crew-agent"):
crew\.kickoff()

# AutoGen

with vt.monitor("autogen-agent"):
agent.run()
\`\`\`

## Environment variable

\`\`\`bash
export VAULTAK\_API\_KEY=vtk\_your\_api\_key\_here
\`\`\`

\`\`\`python
vt = Vaultak()  # Reads from VAULTAK\_API\_KEY automatically
\`\`\`

## Next steps

* [View your agents in the dashboard](https://app.vaultak.com)
* [Read the full API reference](/api-reference)
* [Learn about Vaultak Sentry for zero-code deployment](/sentry)
