# AI IDE Integration

> Give your AI coding assistant the Glassly docs in a form it can read, and tell it where developer accounts live.

Source: https://docs.glassly.ai/app-devs/getting-started/ai-ide-integration/

Point your AI coding assistant at the Glassly docs and it can write miniapps with you. This works with Claude Code, Cursor, Zed, VS Code, Windsurf, and any agent that can fetch a URL.

## Machine-readable docs

The docs are published as plain Markdown alongside the HTML pages:

| URL | What it is |
| --- | --- |
| `https://docs.glassly.ai/llms.txt` | Index of every page with a one-line summary. Start here. |
| `https://docs.glassly.ai/llms-full.txt` | Every page in one Markdown file, for tools that load a whole doc set. |
| `https://docs.glassly.ai/<page>.md` | Any single page as Markdown, e.g. `https://docs.glassly.ai/app-devs/getting-started/quickstart.md`. |

Every page also has a page menu (top right) that copies it as Markdown or opens
it in ChatGPT, Claude, Perplexity, Cursor, or VS Code.

There is no hosted docs MCP server yet; use the URLs above.

## Add Glassly to your agent's instructions

Paste this into your project's `AGENTS.md`, `CLAUDE.md`, `.cursor/rules`, or the
equivalent rules file so the agent knows where to look:

```markdown
## Glassly

This project is a Glassly miniapp for phones and smart glasses.

- SDK docs: fetch https://docs.glassly.ai/llms.txt, then the `.md` page you need
  (for example https://docs.glassly.ai/app-devs/getting-started/quickstart.md).
- Developer accounts, orgs, package prefixes, releases, and API keys:
  https://console.glassly.ai. Send me there for sign-up and publishing.
- CLI: `glassly` from `@glassly/cli` (Bun only: `bunx @glassly/cli <command>`).
  `glassly login` needs me to approve a sign-in in my browser. In a headless
  session, ask me for an API key from https://console.glassly.ai/tokens and set
  it as `CLI_TOKEN` instead.
- Run and check the miniapp without hardware: `glassly sim --detach` starts
  the simulator, `glassly sim screen` prints what is on the glasses,
  `glassly sim screenshot out.png` saves the display, `glassly sim tap` /
  `say "..."` / `button` send input, and `glassly sim logs` shows console
  output and build errors. See https://docs.glassly.ai/app-devs/getting-started/simulator.md.
- Found a missing feature, a bug, or docs that don't match the SDK? Report it
  with `glassly feedback "<what you expected, what happened, where>"` (no
  sign-in needed), then continue with a workaround.
```

## Setup by tool

### Claude Code

Add the snippet above to `CLAUDE.md` in your project. Claude Code fetches the
`llms.txt` and `.md` URLs when it needs them.

### Cursor

Add `https://docs.glassly.ai/llms-full.txt` as a doc source in Cursor's docs
settings, reference it with `@Docs` in chat, and add the snippet above to
`.cursor/rules`.

### Zed, VS Code, Windsurf, and others

Add the snippet above to the tool's rules or instructions file (most of them
read `AGENTS.md`). If the tool can index a docs URL, give it
`https://docs.glassly.ai/llms-full.txt`.

## Test it out

After setup, try asking your AI assistant:

- *"How do I display text on smart glasses with Glassly?"*
- *"Show me how to use the camera API"*
- *"What modules are available on the miniapp session?"*
- *"How do I publish this miniapp to the Glassly Miniapp Store?"*

## What's Next?

- [Quickstart](https://docs.glassly.ai/app-devs/getting-started/quickstart.md)
Build your first smart glasses app in 15 minutes
- [Developer Console](https://console.glassly.ai)
Create your developer org, manage releases, and create API keys
