From 43daf8162ca065c7c62377b9e126b367127851f0 Mon Sep 17 00:00:00 2001 From: dtzp555 Date: Fri, 10 Apr 2026 21:17:25 +1000 Subject: [PATCH] docs: add LAN mode documentation and family sharing guide --- README.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bb212c..4bafbe0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # OCP — Open Claude Proxy -> **Status: Stable (v3.3.1)** — Feature-complete. Bug fixes only. +> **Status: Stable (v3.4.0)** — Feature-complete. Bug fixes only. > **Already paying for Claude Pro/Max? Use your subscription as an OpenAI-compatible API — $0 extra cost.** @@ -55,6 +55,65 @@ curl http://127.0.0.1:3456/v1/models # Returns: claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4 ``` +## LAN Mode — Share with Family + +OCP can serve your entire household from a single machine. + +### Enable LAN Access + +```bash +# Set bind address and restart +export CLAUDE_BIND=0.0.0.0 +ocp restart +``` + +Or permanently via setup: +```bash +node setup.mjs --bind 0.0.0.0 --auth-mode multi +``` + +### Auth Modes + +| Mode | Env | Description | +|------|-----|-------------| +| `none` | `CLAUDE_AUTH_MODE=none` | Open access (trusted network) | +| `shared` | `CLAUDE_AUTH_MODE=shared` | Single key via `PROXY_API_KEY` | +| `multi` | `CLAUDE_AUTH_MODE=multi` | Per-user keys with usage tracking | + +### Multi-Key Setup + +```bash +# Create keys for family members +ocp keys add wife-laptop +ocp keys add son-ipad + +# List keys +ocp keys + +# View per-key usage +ocp usage --by-key + +# Revoke a key +ocp keys revoke son-ipad +``` + +### Family Member Setup + +Give your family member these settings for their IDE: + +``` +OPENAI_BASE_URL=http://:3456/v1 +OPENAI_API_KEY=ocp_ +``` + +Run `ocp lan` to see your IP and connection guide. + +### Web Dashboard + +Access the usage dashboard at: `http://:3456/dashboard` + +Shows real-time stats: per-key usage, request history, plan utilization, and system health. + ## Built-in Usage Monitoring Check your subscription usage from the terminal: