CodeGPT

CodeGPT

CodeGPT is an AI coding assistant VS Code extension with 2M+ installs that supports BYOK (bring your own API key) for full model flexibility across Claude, Gemini, GPT and other LLMs. Features agent/planning mode, MCP support, advanced autocomplete.

Free
CodeGPT

CodeGPT: A Cursor Alternative for BYOK-Powered AI Coding in VS Code

CodeGPT is an AI coding assistant VS Code extension developed by the CodeGPT team, with over 2 million installs, that supports bring-your-own-API-key (BYOK) for full model flexibility across Claude, Gemini, GPT-4, and 50+ other LLMs. It features an agent and planning mode, MCP integration, and advanced autocomplete — all within VS Code without requiring a standalone IDE installation. As a Cursor alternative, it targets VS Code developers who want model-agnostic AI assistance with full control over which AI providers power their workflow, without switching to a new IDE.

CodeGPT vs. Cursor: Quick Comparison

CodeGPTCursor
TypeVS Code extensionStandalone IDE (VS Code fork)
PricingFree (30 interactions) / BYOK Pro $8/mo / Enterprise customFree / $20 / $40 per month
LLM choiceClaude, Gemini, GPT, 50+ models via BYOKBuilt-in models + own key
Offline / local modelsYes — via Ollama and local providersNo
Open sourceNoNo
Codebase indexingNo (relies on in-context file selection)Yes (automatic)
Multi-file editsYes (via Agent & Planning mode)Yes

Key Strengths

  • BYOK with 50+ Model Providers: CodeGPT's core differentiator is its comprehensive BYOK support, allowing developers to bring their own API keys from OpenAI, Anthropic (Claude), Google (Gemini), Mistral, Cohere, and 50+ other providers. This gives developers complete control over model choice, cost, and data routing — with no platform markup on token usage. Teams with existing enterprise agreements with specific AI providers can leverage those agreements directly through CodeGPT.
  • Agent and Planning Mode: CodeGPT's agent mode doesn't just generate code — it first thinks through the problem, creates a plan, and then executes it step by step. This planning-first approach reduces the common failure mode of AI coding tools that dive straight into code generation without understanding the full scope of a change, resulting in more coherent multi-step implementations.
  • MCP Integration: CodeGPT supports the Model Context Protocol (MCP), enabling it to connect to external data sources, tools, and APIs through a standardized interface. This allows developers to extend the AI assistant's context beyond the codebase — pulling in documentation, issue trackers, database schemas, or custom business logic — without manual copy-paste into the chat window.
  • Total Visibility into Agent Actions: CodeGPT provides full transparency into what the AI agent is doing at each step — which files it's reading, what tools it's calling, what edits it's planning. This is especially important for security-conscious teams that want auditability over AI actions in their codebase, a concern that closed-box agents like Cursor's Composer don't fully address.
  • Rules for Consistent Code Standards: CodeGPT allows teams to define Rules — project-specific instructions that the AI consistently applies across all sessions. This enables teams to enforce coding standards, naming conventions, framework-specific patterns, and architectural decisions without repeating them in every prompt, improving consistency across large codebases and multiple developers.

Known Weaknesses

  • VS Code Only: CodeGPT is exclusively a VS Code extension with no support for JetBrains IDEs, standalone desktop apps, or CLI usage. Developers using IntelliJ IDEA, PyCharm, WebStorm, or other JetBrains-based IDEs are completely excluded, limiting its addressable developer population compared to multi-IDE tools like Amp or Factory AI.
  • Free Tier Limited to 30 Interactions: The free tier allows only 30 interactions per period without providing your own API key, which is insufficient for meaningful daily usage. Developers who want to try CodeGPT as a Cursor replacement before committing to the paid tier or BYOK setup will find the free tier too restrictive for proper evaluation.
  • No Automatic Codebase Indexing: Unlike Cursor, which automatically indexes the entire codebase for semantic search and contextual awareness, CodeGPT relies on developers manually including relevant files in context. For large projects with many interdependent modules, this can significantly degrade AI response quality when the relevant context is spread across many files that aren't manually selected.
  • No Inline Tab Completion in Free Tier Without BYOK: The automated inline code completion feature — the core productivity feature that Cursor's tab completion is known for — is not available in CodeGPT's free tier without a BYOK setup. This creates a friction point for developers evaluating whether CodeGPT can replace Cursor's core autocomplete-driven workflow.

Best For

CodeGPT is best suited for VS Code developers who want to stay in their existing editor while gaining model-agnostic AI coding assistance with full control over which LLM providers they use. It's particularly well-suited for teams with existing enterprise AI agreements (OpenAI, Anthropic, Google) who want to leverage those agreements directly without additional platform markups, and for developers who require local/Ollama model support for privacy or air-gapped environments. The Rules feature makes it especially valuable for larger teams that need consistent AI behavior across multiple developers working on shared codebases.

Pricing

  • Free: $0/month — 30 interactions per period, access to CodeGPT-provided models (no BYOK required)
  • BYOK Pro: $8/month — unlimited interactions with your own API keys, full model flexibility, all Pro features including advanced autocomplete and agent mode
  • Enterprise: Custom pricing — team management, shared Rules, priority support, advanced security and compliance features

Prices are subject to change. Check the official pricing page for current details.

Technical Details

  • Models supported: Claude (Anthropic), Gemini (Google), GPT-4/GPT-4o (OpenAI), Mistral, Cohere, Llama (via Ollama), and 50+ providers via BYOK
  • Context window: Dependent on underlying model (up to 200K tokens with Claude; up to 128K with GPT-4o)
  • IDE / platform: VS Code extension only
  • Offline / local models: Yes — via Ollama and compatible local providers
  • Codebase indexing: No — relies on manual in-context file selection per session
  • API access: Yes — via BYOK API keys from each provider
  • Open source: No

How It Compares to Cursor

Cursor is a standalone VS Code fork with automatic codebase indexing, a polished multi-model interface, and a flat-rate subscription that includes model costs. CodeGPT stays within VS Code as an extension, requiring no IDE switch, and trades Cursor's codebase indexing for broader model flexibility (50+ providers via BYOK), local model support (Ollama), and a lower pro price ($8/month vs. $20/month). For developers who specifically value model agnosticism, local execution, and staying within standard VS Code rather than a fork, CodeGPT offers a compelling value proposition at a significantly lower price point.

Conclusion

CodeGPT is the right Cursor alternative for VS Code developers who want AI coding assistance without switching IDEs, with full control over which AI models power their workflow via BYOK. If you want local model support via Ollama, 50+ LLM provider options, and consistent team-wide AI behavior via Rules — all at $8/month — CodeGPT delivers meaningful functionality that rivals Cursor for many everyday coding tasks at a fraction of the price.

Sources

FAQ

Is CodeGPT free?

Yes, CodeGPT has a free tier with 30 interactions per period. For unlimited usage, the BYOK Pro plan costs $8/month, or you can use your own API keys (BYOK) for additional flexibility within the free tier.

Does CodeGPT work with VS Code?

Yes — CodeGPT is exclusively a VS Code extension with 2M+ installs. It does not support JetBrains IDEs or standalone desktop use.

How does CodeGPT compare to Cursor?

Cursor is a standalone VS Code fork with automatic codebase indexing and a $20/month subscription that includes model costs. CodeGPT is a VS Code extension with BYOK for 50+ models, local Ollama support, and a $8/month Pro plan — cheaper and more model-flexible, but without automatic codebase indexing or the need to switch from standard VS Code.

Can CodeGPT run local AI models?

Yes. CodeGPT supports local model execution via Ollama, allowing developers to run Llama, Mistral, and other open-weight models entirely locally without sending code to external APIs — an important feature for privacy-sensitive codebases or air-gapped environments.

Reviews

No reviews yet

Similar alternatives in category