# Devika — Open-Source AI Software Engineer > Autonomous AI that understands instructions, researches the web, plans, and writes code. Open-source Devin alternative. 19K+ stars. ## Install Copy the content below into your project: # Devika — Open-Source AI Software Engineer ## Quick Use ```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. --- ## 快速使用 ```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 python devika.py ``` 另一个终端:`cd ui && npm install && npm run dev`,打开 `http://localhost:3000`。 --- ## 简介 Devika 是一个拥有 19,400+ GitHub stars 的开源自主 AI 软件工程师,是 Cognition Devin 的第一个开源替代品。用自然语言描述任务,Devika 会自主规划方案、上网搜索资料、编写多文件代码,直到任务完成。支持 Claude 3、GPT-4、Gemini、Mistral 和 Ollama 本地模型。 适用于:Claude 3、GPT-4、Gemini、Mistral、Ollama。适合需要 AI 独立研究、规划和编码的开发者。 --- ## 核心能力 ### 任务规划 将复杂任务分解为可管理的子步骤,明确依赖关系。 ### 网络研究 通过 Playwright 自主浏览网页,搜集 API 文档和解决方案。 ### 代码生成 生成多文件项目,正确的目录结构和代码风格。 ### 自我审查 自动检查代码质量,发现并修复 bug。 --- ## 来源与感谢 > Created by [Stition AI](https://github.com/stitionai). Licensed under MIT. > > [devika](https://github.com/stitionai/devika) — ⭐ 19,400+ --- Source: https://tokrepo.com/en/workflows/5bb9c583-ff81-40e1-b1d1-6a1c8cab86bf Author: TokRepo精选