The simplest way to make AI coding tools GDPR compliant: run everything on your own servers. No data transfers, no DPAs, no third-party processors. Here’s how.
The setup
Developer machine → Your server (or local) → Model inference → Response
↑
No external connections
No data leaves your network
Recommended self-hosted stack
| Component | Tool | Why |
|---|---|---|
| Model runtime | Ollama | Easiest setup, auto GPU acceleration |
| Coding agent | Aider or OpenCode | Works with local models |
| IDE assistant | Continue.dev | Open-source, connects to Ollama |
| Autocomplete | Codestral 22B via Ollama | Best FIM model |
| Chat/coding | Devstral Small 24B or Qwen 3.5 27B | Best local coding models |
Hardware options
| Setup | Cost | Serves | Models |
|---|---|---|---|
| Mac Mini M4 32GB | $1,150 | 1-2 devs | 27B models |
| Mac Mini M4 Pro 48GB | $1,800 | 2-3 devs | 32B models |
| RTX 4090 workstation | $2,500 | 3-5 devs | 27B models |
| A100 server | $10,000+ | 5-15 devs | 72B+ models |
See our free AI coding server guide for team setup.
Quick setup (single developer)
# Install
brew install ollama
pip install aider-chat
# Pull models
ollama pull devstral-small:24b # Coding agent
ollama pull codestral:22b # Autocomplete
# Start coding
aider --model ollama/devstral-small:24b
Total cost: $0/month after hardware. Complete GDPR compliance. No paperwork.
What you give up
Be honest about the tradeoffs:
| Self-hosted | Cloud API | |
|---|---|---|
| Quality | Good (80-90% of Claude) | Best |
| Speed | Hardware-dependent | Consistent |
| Maintenance | You manage updates | Zero |
| Cost | Hardware upfront | Monthly API fees |
| Privacy | ✅ Complete | Depends on provider |
| GDPR | ✅ Automatic | Requires DPA + audit |
For most EU companies, the quality gap is acceptable. A Devstral Small 24B handles 80% of coding tasks well. For the remaining 20%, use Mistral’s API (EU-based, GDPR compliant by default).
Related: AI and GDPR for Developers · Best AI Coding Agents for Privacy · Ollama Complete Guide · How to Set Up a Free AI Coding Server