# sherifjavaandroid/claude-code-free architecture

> Architecture diagram of the GitHub repository sherifjavaandroid/claude-code-free, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sherifjavaandroid/claude-code-free
- Repository: https://github.com/sherifjavaandroid/claude-code-free

## Overview

Claude Code Free provides installer scripts and provider-launch commands that configure Claude Code to use free-account provider sessions through Anthropic-compatible message proxies. The README documents token forwarding for Qwen, Kimi, and DeepSeek, and a distinct server-side ChatGPT session with quota fallback and request-size handling. No source excerpts were available, so implementation details beyond those documented relationships are omitted.

Main entry points: [`claude-providers.ps1`](https://github.com/sherifjavaandroid/claude-code-free/blob/main/claude-providers.ps1) (Provider commands), [`install.sh`](https://github.com/sherifjavaandroid/claude-code-free/blob/main/install.sh) (Unix installer), [`install.ps1`](https://github.com/sherifjavaandroid/claude-code-free/blob/main/install.ps1) (Windows installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup"]
  node_unix_installer["Unix installer<br/>[install.sh]"]
  node_windows_installer["Windows installer<br/>[install.ps1]"]
end

subgraph group_launch["Provider launch"]
  node_provider_commands["Provider commands"]
end

subgraph group_proxy["Proxy services"]
  node_messages_api["Messages endpoint"]
  node_personal_providers["Qwen, Kimi, DeepSeek"]
  node_chatgpt_proxy["ChatGPT proxy"]
  node_chatgpt_session["ChatGPT session"]
end

node_user(("User"))
node_claude_code["Claude Code"]

node_user -->|"runs setup"| node_unix_installer
node_user -->|"runs setup"| node_windows_installer
node_unix_installer -->|"adds commands"| node_provider_commands
node_windows_installer -->|"adds commands"| node_provider_commands
node_user -->|"selects provider"| node_provider_commands
node_provider_commands -->|"launches with config"| node_claude_code
node_claude_code -->|"sends messages"| node_messages_api
node_messages_api -->|"forwards token"| node_personal_providers
node_messages_api -->|"routes requests"| node_chatgpt_proxy
node_chatgpt_proxy -->|"uses session"| node_chatgpt_session

click node_unix_installer "https://github.com/sherifjavaandroid/claude-code-free/blob/main/install.sh"
click node_windows_installer "https://github.com/sherifjavaandroid/claude-code-free/blob/main/install.ps1"
click node_provider_commands "https://github.com/sherifjavaandroid/claude-code-free/blob/main/claude-providers.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_unix_installer,node_windows_installer,node_user toneBlue
class node_provider_commands toneAmber
class node_messages_api,node_personal_providers,node_chatgpt_proxy,node_chatgpt_session toneMint
class node_claude_code toneIndigo
```

## Components

### Setup

- [Unix installer](https://github.com/sherifjavaandroid/claude-code-free/blob/main/install.sh): `install.sh`
- [Windows installer](https://github.com/sherifjavaandroid/claude-code-free/blob/main/install.ps1): `install.ps1`

### Provider launch

- [Provider commands](https://github.com/sherifjavaandroid/claude-code-free/blob/main/claude-providers.ps1): `claude-providers.ps1`

### Proxy services

- **Messages endpoint**
- **Qwen, Kimi, DeepSeek**
- **ChatGPT proxy**
- **ChatGPT session**

### Other components

- **User**
- **Claude Code**

## Connections

- User → Unix installer: runs setup (evidence: `README.md`)
- User → Windows installer: runs setup (evidence: `README.md`)
- Unix installer → Provider commands: adds commands (evidence: `README.md`)
- Windows installer → Provider commands: adds commands (evidence: `README.md`)
- User → Provider commands: selects provider (evidence: `README.md`)
- Provider commands → Claude Code: launches with config (evidence: `README.md`)
- Claude Code → Messages endpoint: sends messages (evidence: `README.md`)
- Messages endpoint → Qwen, Kimi, DeepSeek: forwards token (evidence: `README.md`)
- Messages endpoint → ChatGPT proxy: routes requests (evidence: `README.md`)
- ChatGPT proxy → ChatGPT session: uses session (evidence: `README.md`)
