Smart Code Prompts Logo Smart Code Prompts

The Open-Source AI Coding Companion

Smart Code Prompts is a free, local-first AI tool that puts you in control. Powered by the same editor as VS Code, it runs on your machine, connects to any LLM, and keeps your code completely private.

Smart Code Prompts application interface showing the file tree, editor tabs, and prompt area.

A Powerful, Private, and Flexible AI Toolkit

PRIVATE

Truly Local-First

Runs entirely on your machine. Your code, project files, and API keys never leave your computer. You are in complete control.

POWERFUL

Powered by VS Code's Editor

Enjoy a first-class coding experience with the Monaco Editor. Get tabs, syntax highlighting, Git integration, and a familiar, productive interface.

FLEXIBLE

Connect to Any Model

Integrates with OpenRouter.ai, allowing you to use hundreds of LLMs from OpenAI, Anthropic, Google, and more. Choose the best model for the job.

A Smarter Way to Interact with AI

01

Build Rich Context

Select relevant files from your project to build a context-rich prompt. The AI gets a complete picture, leading to more accurate and helpful responses.

Building context by selecting files in the file tree
02

Intelligent Q&A

Ask questions about your entire project. Smart Code Prompts analyzes your files to provide insightful answers, explain complex code, or suggest refactors.

Chatting with the AI about the codebase
03

Detailed LLM Logs

Keep a persistent log of every API call, including the prompt, response, token counts, and estimated cost. Understand your usage and optimize your workflow.

Detailed logs of LLM calls with token counts and cost

How to Install

Get Started in Minutes

Smart Code Prompts is built with Electron and runs on Windows, macOS, and Linux. You can download a pre-built binary from our GitHub Releases page, or build it from source yourself.

# 1. Clone the repository
git clone https://github.com/yardimli/SmartCodePrompts.git
cd SmartCodePrompts
 
# 2. Install dependencies
npm install
 
# 3. Run the app
npm start

Full Git Integration

View changes with a side-by-side diff viewer directly within the app. See which files have been modified in your repository and easily reset unwanted changes.

Explore the Code
Side-by-side diff viewer showing file changes