Overview
Integrate CodeAlive with ChatGPT to enhance your AI conversations with deep codebase understanding. ChatGPT can access your indexed repositories through CodeAlive’s API using Custom GPTs with Actions.Prerequisites
- ChatGPT Plus, Team, or Enterprise subscription (required for Custom GPTs with Actions)
- CodeAlive account with API key (Sign up here)
- Indexed repositories in your CodeAlive dashboard
Integration Methods
- Custom GPT (Recommended)
- Direct API Calls
Create a Custom GPT with CodeAlive
Custom GPTs allow you to create a specialized version of ChatGPT that connects to CodeAlive.Create a New GPT
- Go to chat.openai.com
- Click on “Explore GPTs” in the sidebar
- Click “Create” to build a new GPT
Add Authentication
- In the Actions configuration, click “Authentication”
- Select “API Key”
- Auth Type: “Bearer”
- Add your CodeAlive API key
Usage Examples
Code Search
Architecture Analysis
Code Generation
Advanced Configuration
Custom GPT Capabilities
Configure your GPT with specific capabilities:Rate Limiting
Be aware of rate limits:- ChatGPT has limits on Actions calls per conversation
- CodeAlive API has rate limits based on your plan
- Use specific queries to minimize API calls
Privacy Settings
For team/enterprise accounts:- Control data sharing in GPT settings
- Set action permissions (private, team, public)
- Configure audit logging if required
Sharing Your GPT
Make it Public
- Go to GPT settings
- Click “Publish” → “Public”
- Share the GPT link with others
- Users will need their own CodeAlive API key
Team Sharing
For ChatGPT Team/Enterprise:- Set visibility to “Anyone at [Your Organization]”
- Team members can use shared authentication
- Centrally manage API keys
Best Practices
Specific Queries
Use precise search terms to get relevant results
Context Windows
Be mindful of token limits when searching large codebases
Caching
Reuse search results within the same conversation
Security
Never share API keys in conversation
Troubleshooting
Action fails with authentication error
Action fails with authentication error
Solutions:
- Verify API key is correct
- Check key hasn’t expired
- Ensure Bearer prefix is included
- Regenerate key if needed
No results from searches
No results from searches
Solutions:
- Verify repositories are indexed
- Check search query syntax
- Test API directly with curl
- Check rate limits
GPT not using CodeAlive action
GPT not using CodeAlive action
Solutions:
- Explicitly ask to “use CodeAlive”
- Check action is enabled
- Verify OpenAPI schema is valid
- Review GPT instructions
Rate limit exceeded
Rate limit exceeded
Solutions:
- Reduce frequency of searches
- Use more specific queries
- Upgrade CodeAlive plan
- Cache results when possible
Limitations
Alternatives
If ChatGPT doesn’t meet your needs, consider:Claude Code
Native MCP support with real-time updates
Cursor
IDE-integrated AI with MCP
Continue
Open-source alternative with MCP
API Direct
Build custom integration