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

# Integrate with a coding agent

> Hand Weflayr's integration playbook to your coding agent and let it instrument your codebase.

Weflayr is set up in code, so a coding agent (Claude Code, Cursor, Codex, Copilot, ...) can do the integration for you: install the SDK, auto-instrument your AI providers, wrap your calls with the right feature and customer, and hand you back what is left to configure.

## Paste this to your agent

```text theme={null}
Integrate Weflayr into this codebase. Read
https://docs.weflayr.com/agents/integrate-weflayr.md and follow it end to end,
including the questions it tells you to ask me.
```

## What the agent will do

<Steps>
  <Step title="Survey your code">
    Finds your AI provider SDKs, your framework, every process that makes LLM calls, and where your customer or tenant identity lives.
  </Step>

  <Step title="Install and auto-instrument">
    Adds the SDK and one startup call per process, placed so the provider SDKs are patched before they are used.
  </Step>

  <Step title="Name your features and wrap your calls">
    Proposes a feature name per product-side job, then wraps each one with a decorator or a context manager, whichever fits your code.
  </Step>

  <Step title="Fill in your customers">
    Takes the customer identifier from your code when it is there, and asks you when it is not.
  </Step>

  <Step title="Ask you the rest">
    Where your revenue comes from, whether you have free AI credits, whether this is a product or an internal tool, and what should happen with staging.
  </Step>

  <Step title="Summarize its changes & explain next steps">
    What it changed, what you still need to do in the dashboard, and what it could not do.
  </Step>
</Steps>

## Also machine-readable

<Columns cols={2}>
  <Card title="Documentation index" icon="list" href="https://docs.weflayr.com/llms.txt">
    Every page of this site, as a list an agent can fetch.
  </Card>

  <Card title="Full documentation" icon="file-lines" href="https://docs.weflayr.com/llms-full.txt">
    Every page of this site, as one file.
  </Card>

  <Card title="Weflayr MCP" icon="plug" href="https://docs.weflayr.com/mcp-server">
    Your cost, margin and revenue data, queried by your assistant.
  </Card>

  <Card title="Any page as markdown" icon="markdown">
    Add `.md` to any documentation URL to get its source.
  </Card>
</Columns>
