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

# Cursor

> Using NanoGPT with Cursor AI-powered code editor

> [!NOTE]
>
> These examples use the direct API host, `https://api.nano-gpt.com`. It has no IPv6 address, so clients with only IPv6 should use `https://nano-gpt.com` with the same paths. See [API Hosts](https://docs.nano-gpt.com/api-reference/miscellaneous/api-hosts.md).

# Using Cursor with NanoGPT

A quick guide to setting up Cursor with NanoGPT's API.

## Setup Instructions

1. Get your API key from [nano-gpt.com/api](https://nano-gpt.com/api)
2. In Cursor settings:
   * Override OpenAI Base URL with: [https://api.nano-gpt.com/api/v1/](https://api.nano-gpt.com/api/v1/)
   * Set the API Key to your NanoGPT API key
   * Click "+ Add Model" to add any of our models you want to use

That's it! You can now use any of our models in Cursor. Available models include openai/gpt-6.1-sol, anthropic/claude-opus-5.5, google/gemini-flash-latest, and many more.

Want to explore available models? Visit our [pricing page](https://nano-gpt.com/pricing).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.