Skip to main content
Use this prompt with your preferred AI assistant (Claude, ChatGPT, etc.) to automatically integrate Civic Auth into your FastAPI project.

Video Tutorial

Watch this step-by-step video guide on setting up Python FastAPI with Civic Auth using AI:
Can’t see the embedded video? Open on YouTube.

How to Use

  1. Copy the prompt below
  2. Paste it into your AI assistant
  3. The assistant will ask for your project details and guide you through the setup
  4. The assistant will fetch the complete documentation and implement the integration for you

Integration Prompt

Need help? If you encounter any issues during the LLM-assisted integration, you can always fall back to the manual FastAPI integration guide.

What the AI Assistant Will Do

When you use this prompt, the AI assistant will:
  1. Fetch the documentation using curl from the official Civic Auth docs
  2. Analyze your project structure and requirements
  3. Install dependencies and configure your FastAPI app
  4. Set up authentication routes and dependencies
  5. Implement protected endpoints with proper user access
  6. Handle configuration for development and production environments
  7. Test the integration to ensure everything works correctly

Supported AI Assistants

This prompt has been tested with:
  • Claude (Anthropic)
  • Cursor (with Claude)
  • ChatGPT (OpenAI)
  • GitHub Copilot Chat
Make sure your AI assistant has the ability to run terminal commands and edit files in your project.