How nakul-jm/free-claude-code works
Free Claude Code is a local model gateway and coding-agent integration suite. Its main workflow is to configure a provider and model, launch a supported coding client, route client requests through the local API and provider runtime, and stream compatible responses back. The repository also provides Admin configuration, browser-based Codex sessions, messaging and voice, and optional web tools. The graph combines sampled module references with README-documented capabilities; unsampled subsystem internals and their precise call wiring are not asserted.
Main entry points: handlers Request handlers · provider_manager.py Provider runtime · admin_routes.py Admin UI and API · platforms Messaging platforms
Components 19
Coding clients
- Coding agent
- Agent launchers
src/free_claude_code/cli/launchers - Agent integrations
src/free_claude_code/harnesses
Gateway API
- HTTP API
src/free_claude_code/api/routes.py - Request handlers
src/free_claude_code/api/handlers - Anthropic protocol
src/free_claude_code/core/anthropic - Responses protocol
src/free_claude_code/core/openai_responses
Models and providers
- Model routing
src/free_claude_code/application/routing.py - Provider runtime
src/free_claude_code/runtime/provider_manager.py - Provider adapters
src/free_claude_code/providers - Model services
- Validated settings
src/free_claude_code/config/settings.py
Admin and sessions
- Admin UI and API
src/free_claude_code/api/admin_routes.py - Application runtime
src/free_claude_code/runtime/application.py - Browser code sessions
src/free_claude_code/application/code_sessions/service.py - Session persistence
src/free_claude_code/runtime/code_sessions_sqlite.py
Messaging and tools
- Messaging platforms
src/free_claude_code/messaging/platforms - Agent messaging
src/free_claude_code/messaging/workflow.py - Web tools
src/free_claude_code/application/web_tools/service.py
Connections 18
- Coding agent → Agent launchers: uses
README.md - Agent launchers → HTTP API: connects to
- Coding agent → Agent integrations: integrates through
README.md - HTTP API → Request handlers: dispatches
src/free_claude_code/api/routes.py - Request handlers → Model routing: routes requests
- Request handlers → Anthropic protocol: serves messages
src/free_claude_code/api/routes.py - Request handlers → Responses protocol: serves responses
src/free_claude_code/api/routes.py - Model routing → Provider runtime: resolves models
- Provider runtime → Provider adapters: discovers providers
src/free_claude_code/runtime/provider_manager.py - Provider adapters → Model services: sends requests
README.md - Validated settings → Provider runtime: configures
src/free_claude_code/runtime/provider_manager.py - Admin UI and API → Application runtime: invokes admin operations
src/free_claude_code/api/admin_routes.py - Admin UI and API → Validated settings: configures providers
README.md - Coding agent → Browser code sessions: uses browser sessions
README.md - Browser code sessions → Session persistence: persists sessions
- Messaging platforms → Agent messaging: delivers agent work
README.md - Messaging platforms → Coding agent: accepts turns
README.md - Request handlers → Web tools: offers web tools