Docker Setup (Recommended)
The fastest way to get started with DeepWiki-Open is using Docker Compose.1
Clone the Repository
Repository cloned successfully
2
Configure Environment Variables
Create a
.env
file with your API keys:.env
At minimum, you need either
GOOGLE_API_KEY
or OPENAI_API_KEY
to get started.3
Start with Docker Compose
This will start both the backend API server (port 8001) and frontend web app (port 3000).
4
Access DeepWiki
Open your browser to http://localhost:3000
You should see the DeepWiki interface ready to generate your first wiki!
Manual Setup
For development or custom configurations, you can set up DeepWiki manually.1
Set Up Environment Variables
Create a
.env
file in the project root:2
Start the Backend API
The API server will start on port 8001 by default.
3
Start the Frontend
Generate Your First Wiki
1
Enter Repository URL
In the DeepWiki interface, enter a GitHub, GitLab, or BitBucket repository URL:
https://github.com/openai/codex
https://github.com/microsoft/autogen
https://gitlab.com/gitlab-org/gitlab
https://bitbucket.org/redradish/atlassian_app_versions
Start with a smaller repository for your first test to see faster results.
2
Add Access Token (For Private Repos)
If accessing a private repository:
- Click ”+ Add access tokens”
- Enter your GitHub, GitLab, or BitBucket personal access token
Ensure your token has appropriate repository access permissions.
3
Select AI Model Provider
Choose your preferred AI model provider and model:
Google Gemini (Recommended)
Google Gemini (Recommended)
- Default:
gemini-2.0-flash
- Also available:
gemini-1.5-flash
,gemini-1.0-pro
- Best for: Fast, reliable documentation generation
OpenAI
OpenAI
- Default:
gpt-4o
- Also available:
o1
,o3
,o4-mini
- Best for: High-quality, detailed documentation
OpenRouter
OpenRouter
- Access to: Claude, Llama, Mistral, and 100+ models
- Best for: Trying different models without multiple API keys
4
Generate Wiki
Click “Generate Wiki” and watch the magic happen!
Generation time varies by repository size. Smaller repos take 30 seconds to 2 minutes, while larger ones may take 5-10 minutes.
API Key Setup
- Visit Google AI Studio
- Create a new API key
- Add to
.env
asGOOGLE_API_KEY=your_key_here
Google Gemini offers generous free tier limits and fast performance.
Verification
Backend Health Check
Backend Health Check
Visit http://localhost:8001/docs to see the FastAPI documentation and test endpoints.
Frontend Connection
Frontend Connection
The frontend at http://localhost:3000 should show:
- Repository input field
- Model selection dropdown
- Generate Wiki button
Environment Variables
Environment Variables
Check that your environment variables are loaded correctly:
Next Steps
Learn Core Features
Explore wiki generation, Ask feature, and DeepResearch
Configure Model Providers
Set up multiple AI providers and choose the best models
Deploy to Production
Deploy DeepWiki for production use
API Integration
Integrate DeepWiki into your existing workflows
Troubleshooting
Cannot connect to API server
Cannot connect to API server
- Ensure the backend is running on port 8001
- Check firewall settings
- Verify no other services are using port 8001
Missing environment variables error
Missing environment variables error
- Check
.env
file exists in project root - Verify API keys are correctly formatted
- Ensure no extra spaces in environment variables
API key not valid error
API key not valid error
- Double-check API key accuracy
- Verify API key permissions and quotas
- Test API key with provider’s documentation