Autonomous AI that understands instructions, researches the web, plans, and writes code. Open-source Devin alternative. 19K+ stars.
TO
TokRepo精选 · Community
Quick Use
Use it first, then decide how deep to go
This block should tell both the user and the agent what to copy, install, and apply first.
```bash
git clone https://github.com/stitionai/devika.git
cd devika
uv venv && source .venv/bin/activate
uv pip install -r requirements.txt
playwright install --with-deps
```
```bash
# Start the backend
python devika.py
# Start the frontend (in another terminal)
cd ui && npm install && npm run dev
```
Open `http://localhost:3000` — Devika's web UI is ready.
Set your LLM API key in the settings panel, then:
```
You: "Create a Python web scraper that extracts product prices
from Amazon and saves them to a CSV file."
Devika: Planning... → Researching... → Coding... → Done!
```
---
Intro
Devika is an open-source autonomous AI software engineer with 19,400+ GitHub stars, built as the first open-source alternative to Cognition AI's Devin. Give Devika a high-level task in natural language and she plans the approach, researches the web for context, writes code across multiple files, and iterates until the task is complete. She supports Claude 3, GPT-4, Gemini, Mistral, and local LLMs via Ollama. Devika makes complex software engineering tasks accessible to anyone through a chat-based web interface.
Works with: Claude 3, GPT-4, Gemini, Mistral, Groq, Ollama (local models). Best for developers wanting an AI pair programmer that can independently research, plan, and code. Setup time: under 10 minutes.
---
## Devika Agent Architecture
### How Devika Works
```
User: "Build a dashboard that shows real-time crypto prices"
│
├─ 1. Planning Agent
│ Breaks task into steps:
│ - Research crypto APIs
│ - Choose web framework
│ - Design data model
│ - Build frontend
│ - Add real-time updates
│
├─ 2. Research Agent
│ Browses the web via Playwright:
│ - CoinGecko API documentation
│ - Next.js dashboard examples
│ - WebSocket best practices
│
├─ 3. Coding Agent
│ Writes code across files:
│ - api/prices.py
│ - components/PriceChart.tsx
│ - utils/websocket.ts
│ - README.md
│
└─ 4. Review & Iterate
Self-reviews code quality
Fixes bugs if found
Reports completion
```
### Core Capabilities
| Capability | Description |
|-----------|-------------|
| **Task Planning** | Decomposes complex tasks into manageable sub-steps with dependencies |
| **Web Research** | Browses the internet via headless Playwright to gather context |
| **Keyword Extraction** | Identifies relevant search terms from the task description |
| **Code Writing** | Generates multi-file projects with proper structure |
| **Self-Review** | Reviews own code for bugs and improvements |
| **Multi-Language** | Python, JavaScript, TypeScript, Go, Rust, and more |
### Supported LLM Providers
```python
# In settings panel, choose your provider:
providers = {
"Claude 3": {"models": ["claude-3-opus", "claude-3-sonnet", "claude-3-haiku"]},
"OpenAI": {"models": ["gpt-4", "gpt-4-turbo", "gpt-3.5-turbo"]},
"Google": {"models": ["gemini-pro", "gemini-1.5-pro"]},
"Mistral": {"models": ["mistral-large", "mistral-medium"]},
"Groq": {"models": ["llama-3-70b", "mixtral-8x7b"]},
"Ollama": {"models": ["any local model"]},
}
```
### Web Research Engine
Devika uses Playwright for autonomous web browsing:
```
Research Flow:
1. Extract keywords from user task
2. Search the web (Google, Bing, DuckDuckGo)
3. Open relevant pages
4. Extract and summarize content
5. Build a knowledge base for coding
```
This means Devika can:
- Read API documentation before writing integration code
- Study existing implementations for inspiration
- Find and apply solutions from Stack Overflow
- Understand framework conventions from docs
### Project Management
Each task creates a project with:
- File tree structure
- Step-by-step progress tracking
- Code history and diffs
- Research notes and sources
- Agent state visualization
### Chat Interface
The web UI provides:
- Natural language conversation with Devika
- Real-time progress of planning → research → coding phases
- Code preview with syntax highlighting
- Project file browser
- Model selection dropdown
---
## FAQ
**Q: What is Devika?**
A: Devika is an open-source AI software engineer with 19,400+ GitHub stars — the first open-source Devin alternative. She autonomously plans, researches, and writes code from natural language instructions.
**Q: How is Devika different from GitHub Copilot or Cursor?**
A: Copilot and Cursor assist with code completion in an editor. Devika is an autonomous agent that independently researches the web, plans multi-step approaches, and writes complete multi-file projects from scratch — no IDE required.
**Q: Is Devika free?**
A: Yes, open-source under MIT license. You bring your own LLM API keys (or use free Ollama).
---
🙏
Source & Thanks
> Created by [Stition AI](https://github.com/stitionai). Licensed under MIT.
>
> [devika](https://github.com/stitionai/devika) — ⭐ 19,400+
Thanks to Stition AI for democratizing AI-powered software engineering.
Discussion
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.