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

# Introduction

> Lettuce — give your coding agent the answers it would otherwise grep for.

Lettuce gives your coding agent a graph map of your codebase so it answers
questions from precise pointers instead of grepping and reading whole
files. Run it two ways:

* **Local-first** — index a repo into a SQLite file on your machine and
  connect an agent to a stdio MCP server. No account, no upload, no network
  at query time. See [Run locally](/local).
* **Cloud** — a hosted [MCP](https://modelcontextprotocol.io) endpoint.
  Add a repo, connect your agent, ask away. The three steps below.

## Three steps

<Steps>
  <Step title="Sign up">
    Create an account at [uselettuce.dev/signup](https://uselettuce.dev/signup).
  </Step>

  <Step title="Generate an API key">
    On the [API keys page](https://uselettuce.dev/keys), click
    **New key** and copy the `cwz_…` value.
  </Step>

  <Step title="Connect your agent">
    Drop the MCP endpoint + your key into your agent's config — exact
    snippets for [Claude Code](/connect-agents#claude-code),
    [Cursor](/connect-agents#cursor),
    [VS Code](/connect-agents#vs-code-github-copilot),
    [Windsurf](/connect-agents#windsurf), and
    [Cline](/connect-agents#cline) on the next page.
  </Step>

  <Step title="Tell it to use lettuce">
    Add a short snippet to the agent's system prompt so it actually
    reaches for the new tools — see
    [Agent instructions](/agent-instructions).
  </Step>
</Steps>

The full walkthrough lives in the [Quickstart](/quickstart).

## Works with any MCP agent

Lettuce speaks the [Model Context Protocol](https://modelcontextprotocol.io),
so it works with Claude Code, Cursor, GitHub Copilot, Windsurf, Cline, and
any other MCP-capable agent.

## Languages

Lettuce supports **Python**, **TypeScript**, **JavaScript**, **Go**,
**Rust**, **Java**, **Ruby**, **C**, **C++**, **.NET (C#)**, **PHP**, **Kotlin**,
**Scala**, **Swift**, **Bash**, and **Lua**.
