> ## Documentation Index
> Fetch the complete documentation index at: https://vendo-mintlify-9465070f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# In your existing agent

> Spread Vendo's guarded tool pack into an AI SDK or Mastra loop you already run, and render what it returns in your own chat.

Keep your loop. Vendo adds the guarded tools and renders what they return.

Both paths start with [`npx vendo init`](/), which reads your repo, asks how
people will use your agent, and writes the wiring. Pick the framework your loop
already runs and follow that page end to end — each one is complete on its own.

<CardGroup cols={2}>
  <Card title="Quickstart: AI SDK" icon="https://mintcdn.com/vendo-mintlify-9465070f/oYTEzUuScYkXt6Yp/images/logos/vercel.svg?fit=max&auto=format&n=oYTEzUuScYkXt6Yp&q=85&s=0a69ffa917bc4f1207acc5f25339bd49" href="/existing-agent/ai-sdk" width="256" height="222" data-path="images/logos/vercel.svg">
    Per-request packs, `dynamic-tool` parts, one route edit.

    `vendoTools(vendo, { principal })`
  </Card>

  <Card title="Quickstart: Mastra" icon="https://mintcdn.com/vendo-mintlify-9465070f/oYTEzUuScYkXt6Yp/images/logos/mastra.svg?fit=max&auto=format&n=oYTEzUuScYkXt6Yp&q=85&s=3a6cd2d642bfb0cb2ffb08d1171eb0ae" href="/existing-agent/mastra" width="1000" height="1000" data-path="images/logos/mastra.svg">
    A static definition, the request-context caller, one route edit.

    `VENDO_PRINCIPAL_KEY`
  </Card>
</CardGroup>

Either way, the render contract is the same: [Embeds in your chat](/existing-agent/embeds) has the envelope a `vendo_*` tool returns and the components that turn it into a surface.
