Niki - AI Coding Assistant
A powerful VS Code extension that provides AI-powered coding assistance using both cloud and local language models.
Features
- 🤖 Multi-Model Support: Works with cloud models (OpenAI, Anthropic, Google, Azure) and local models (Ollama, LM Studio, Text Generation WebUI)
- 💬 Interactive Chat: Built-in chat interface for real-time AI assistance
- 🔍 Code Analysis: Analyze and explain selected code
- 🔧 Code Refactoring: Get AI-powered code refactoring suggestions
- ⚡ Code Generation: Generate code based on natural language descriptions
- 🐛 Bug Fixing: Identify and fix code issues automatically
- ⚙️ Easy Setup: Simple configuration for both cloud and local models
Quick Start
Installation
- Install the extension from VS Code Marketplace
- Configure your AI models (see Configuration section)
- Start coding with AI assistance!
Usage
- Chat with AI: Press
Ctrl+Shift+I to open the AI chat panel
- Ask AI: Press
Ctrl+Shift+A to ask questions about your code
- Explain Code: Select code and press
Ctrl+Shift+E to get explanations
- Refactor Code: Select code and press
Ctrl+Shift+R to get refactoring suggestions
Configuration
Cloud Models
Get an API key from your preferred provider:
Open VS Code settings and configure:
{
"nikiAI.cloudApiKey": "your-api-key",
"nikiAI.cloudProvider": "openai",
"nikiAI.useLocal": false
}
Local Models
Install a local AI server:
Install a coding model:
# For Ollama
ollama pull deepseek-coder-v2
ollama pull codellama:13b
ollama pull wizardcoder:7b
Configure VS Code settings:
{
"nikiAI.localApiUrl": "http://localhost:11434",
"nikiAI.localModel": "deepseek-coder-v2",
"nikiAI.useLocal": true
}
Supported Models
Cloud Models
- OpenAI: GPT-4, GPT-3.5-turbo
- Anthropic: Claude-3, Claude-2
- Google: Gemini Pro, Gemini Flash
- Azure OpenAI: GPT-4, GPT-3.5-turbo
Local Models
- DeepSeek Coder v2: Excellent coding performance
- CodeLlama: Meta's coding model (7B, 13B, 34B variants)
- WizardCoder: Specialized for code generation
- Phind-CodeLlama: Enhanced CodeLlama variant
Commands
Command |
Shortcut |
Description |
Ask Niki AI Assistant |
Ctrl+Shift+A |
Ask questions about your code |
Explain Selected Code |
Ctrl+Shift+E |
Get explanations for selected code |
Refactor Selected Code |
Ctrl+Shift+R |
Get refactoring suggestions |
Generate Code |
Command Palette |
Generate code from description |
Fix Code Issues |
Command Palette |
Identify and fix bugs |
Setup AI Models |
Command Palette |
Configure AI models |
Focus Chat |
Ctrl+Shift+I |
Open AI chat panel |
Requirements
- VS Code 1.74.0 or higher
- Node.js (for local models)
- Internet connection (for cloud models)
Development
Prerequisites
- Node.js 16.x or higher
- npm or yarn
Setup
git clone <repository-url>
cd niki-ai-assistant
npm install
npm run compile
Testing
npm test
Building
npm run compile
npx vsce package
Contributing
We welcome contributions! Please see our contributing guidelines for more details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Website: https://pandenik.com
- Issues: Report bugs and feature requests on GitHub
- Documentation: See the wiki for detailed guides
Changelog
v0.1.0
- Initial release
- Support for cloud and local AI models
- Interactive chat interface
- Code analysis and refactoring features
- Multi-language support
Made with ❤️ by Pandenik
| |