--- title: 'AI Rules: Neon API' subtitle: Context rules for AI tools to use the Neon API to programmatically manage Neon projects, branches, databases, and other resources. enableTableOfContents: true updatedOn: '2025-10-10T13:19:39.260Z' --- AI Rules are currently in beta. We're actively improving them and would love to hear your feedback. Join us on [Discord](https://discord.gg/92vNTzKDGp) to share your experience and suggestions. Neon API Neon API Reference Docs neon-api-guidelines.mdc ## How to use You can use the following Neon API rules in two ways: ## Option 1: Copy from this page With Cursor, save the [rules](https://docs.cursor.com/context/rules-for-ai#project-rules-recommended) to `.cursor/rules/file_name.mdc` and they'll be automatically applied when working with matching files. For other AI tools, you can include these rules as context when chatting with your AI assistant - check your tool's documentation for the specific method (like using "Include file" or context commands). ## Option 2: Clone from repository If you prefer, you can clone or download the rules directly from our [AI Rules repository](https://github.com/neondatabase-labs/ai-rules). Once added to your project, AI tools will automatically use these rules when working with Neon API. You can also reference them explicitly in prompts. ## Neon API rules: General guidelines Save the following content to a file named `neon-api-guidelines.mdc` in your AI tool's rules directory. ## Neon API rules: Manage API keys Save the following content to a file named `neon-api-keys.mdc` in your AI tool's rules directory. ## Neon API rules: Manage operations Save the following content to a file named `neon-api-operations.mdc` in your AI tool's rules directory. ## Neon API rules: Manage projects Save the following content to a file named `neon-api-projects.mdc` in your AI tool's rules directory. ## Neon API Rules: Manage Branches Save the following content to a file named `neon-api-branches.mdc` in your AI tool's rules directory. ## Neon API Rules: Manage Compute Endpoints Save the following content to a file named `neon-api-endpoints.mdc` in your AI tool's rules directory. ## Neon API Rules: Manage Organizations Save the following content to a file named `neon-api-organizations.mdc` in your AI tool's rules directory.