Open-source local code graph and MCP server that gives AI coding tools only the context a diff touches, instead of the whole repo.

Codeflash
Python performance optimizer that finds faster versions of your functions, verifies them against tests and opens pull requests.
What is Codeflash?
Codeflash is a tool that speeds up Python code. You install it in a project's virtual environment with pip, run codeflash init, and it analyses functions by executing them, proposes faster rewrites, checks that behavior is unchanged using your existing tests plus generated regression tests, and opens pull requests with benchmark numbers attached. It runs from the command line, a VS Code extension with inline optimize hints, a GitHub app and GitHub Actions for continuous optimization of new pull requests. The vendor reports individual functions that sped up from 10% to 5000x. Plans are priced per user: a Free plan with 25 optimization credits a month for public GitHub projects, Pro at $20 per user per month after a 14-day trial, and Enterprise with custom pricing, unlimited credits and on-premises deployment. The company homepage now also describes a managed performance-engineering service with a Codeflash agent.
Use cases
- Speed up slow Python functions
- Optimize every new pull request automatically
- Reduce compute and cloud cost
- Review optimizations before opening pull requests
- Improve machine learning and data processing code
- Check that optimizations keep behavior unchanged
Who it's for
Why use Codeflash
- Optimizations arrive as pull requests with measured results, so a reviewer can accept or reject each change on evidence.
- Behavior is verified by running tests, which lowers the risk that a faster rewrite changes outputs.
- Running it in CI keeps new code from reintroducing slow patterns.
- The Free plan lets you try it on public projects with no payment.
- Pro plans promise no AI training on your code.
Codeflash features
- Optimization of Python functions by running and profiling them
- Correctness checks against existing tests and generated regression tests
- Pull requests with benchmark results and rationale
- VS Code extension with inline optimize hints
- GitHub app and GitHub Actions for continuous optimization
- Staging review to inspect optimizations before PRs
- Command line use on one function or the whole codebase
- Zero data retention policy on Pro and Enterprise
Codeflash integrations
How to get started with Codeflash
- Install Codeflash in your project's virtual environment with pip install codeflash, then run codeflash init.
- Provide an API key by signing in with GitHub, choose the module and tests folder, and install the GitHub app.
- Run codeflash --all or target one file and function, or let GitHub Actions optimize new pull requests.
- Review the generated pull requests with benchmark numbers, or hold them in staging review first.
Codeflash limitations
- Only Python is optimized
- Free plan is limited to 25 optimization credits a month, public GitHub projects and local tracing
- Not every function has an optimization available
- Staging review is a Pro feature
Codeflash pricing
Yes, Codeflash has a free plan. Paid plans start at $20 per month, according to the official pricing page on .
Codeflash plans
Free
Free
- 25 function optimization credits per month
- Community support
- Public projects on GitHub only
- Local tracing only
- AI training permitted
Pro
$20 per user/month
starts with a 14-day free trial
- 500 function optimization credits per user per month
- Advanced optimizations and code quality metrics
- Priority support
- Private projects on GitHub
- User dashboard and analytics
- Zero data retention policy
Enterprise
Custom
- Unlimited optimization credits
- Admin usage analytics
- On-premises deployment
- 24/7 premium support
- Custom SLAs on optimizations suggested
Plans as listed on the official pricing page on . Prices can change and may vary by country or exclude tax. Check the official pricing page.
Codeflash alternatives
The main Codeflash alternatives listed on Debuly are GitHub Copilot, Cursor, Sourcery, Gito, OpenRabbit and CodeRabbit. The table compares pricing and platforms; order is A–Z.
| Tool | Pricing | Starting price | Platforms |
|---|---|---|---|
| Codeflash | Freemium | $20/mo | VS Code extension, Web, Self-hosted |
| CodeRabbit | Freemium | $24/mo | Web, VS Code extension, CLI, Self-hosted |
| Cursor | Freemium | $8/mo | CLI, iOS, Web, API |
| GitHub Copilot | Freemium | $10/mo | — |
| Gito | Open source | — | CLI, Windows, GitHub Actions, GitLab CI |
| OpenRabbit | Open source | — | GitHub Actions, Self-hosted |
| Sourcery | Freemium | $12/mo | Web, GitHub, GitLab, API |

CodeRabbit
AI code review for pull requests, IDEs and the CLI, with pre-merge checks, one-click fixes, triage and security scans.
FreemiumVisit CodeRabbit (official site)
Cursor
AI code editor and coding agent with cloud agents, Bugbot code review and multi-provider models, sold with Grok and X plans.
FreemiumVisit Cursor (official site)
GitHub Copilot
GitHub's AI coding assistant for code completion, chat and agents in VS Code, JetBrains, Visual Studio, the CLI and GitHub.com.
Gito
Open-source AI code reviewer that checks GitHub pull requests and local changes with the language model provider you choose.
Open sourceVisit Gito (official site)OpenRabbit
Free self-hosted GitHub pull request reviewer that runs in your own Actions and posts AI summaries and inline comments
Open sourceVisit OpenRabbit (official site)
Sourcery
AI code review for GitHub and GitLab pull requests with summaries, suggested fixes and security scanning, free on public repositories.
FreemiumVisit Sourcery (official site)
Codeflash FAQ
How much does Codeflash cost?
Pro is $20 per user per month with a 14-day free trial. Free is $0 and Enterprise uses custom pricing.
Is there a free plan?
Yes. Free includes 25 function optimization credits per month, community support, public GitHub projects only and local tracing. The Free plan permits AI training.
What plans does Codeflash have?
Free, Pro and Enterprise. Pro gives 500 credits per user per month and private repo support, and Enterprise adds unlimited credits, on-premises deployment and 24/7 support.
Does Codeflash support languages other than Python?
No. The pricing FAQ says it currently optimizes only Python, though that might change.
How does it check that code still works?
It checks each change against your existing tests and auto-generated regression tests, and attaches benchmark results to the pull request.
Does Codeflash have editor or CI integrations?
Yes. There is a VS Code extension, a GitHub app and GitHub Actions for continuous optimization, and the homepage mentions Claude Code and Cursor.
What are alternatives to Codeflash?
GitHub Copilot, Cursor, Sourcery, Pyroscope and py-spy help with Python code improvement or profiling, though they work differently.
Sources & verification
Facts on this page come from the official sources below, each with the date we read it. Written by Debuly; the vendor did not review this page.
| Source | Type | Accessed |
|---|---|---|
| codeflash.ai/ | official | |
| codeflash.ai/pricing | pricing | |
| docs.codeflash.ai/optimizing-with-codeflash/review-optimizations | docs | |
| docs.codeflash.ai/getting-started/local-installation | docs | |
| codeflash.ai/ | official | |
| docs.codeflash.ai/editor-plugins/vscode/features | docs |
Image credits
- Logo: from cdn.prod.website-files.com · fetched · Vendor trademark, used only to identify the product; removed on request
- Cover: none collected yet, so a generated tile is shown.
Spot an error? Report an issue with this listing. We also remove a logo or image on the owner's request.


