Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

rename project to claude-openai-proxy

Raine Virta5a94a0fe21fd
diff --git a/bun.lock b/bun.lock
index e594201..14ba968 100644
--- a/bun.lock
+++ b/bun.lock
@@ -3,7 +3,7 @@
"configVersion": 1,
"workspaces": {
"": {
- "name": "claude-code-chatgpt-proxy",
+ "name": "claude-openai-proxy",
"dependencies": {
"gpt-tokenizer": "^2.9.0",
},
diff --git a/package.json b/package.json
index d8a07e7..a033c2d 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,10 @@
{
- "name": "claude-code-chatgpt-proxy",
+ "name": "claude-openai-proxy",
"version": "0.0.1",
"private": true,
"type": "module",
"bin": {
- "ccxp": "./src/cli.ts"
+ "claude-openai-proxy": "./src/cli.ts"
},
"scripts": {
"start": "bun run src/cli.ts serve",
diff --git a/src/auth/manager.ts b/src/auth/manager.ts
index e7610d0..f5afdd3 100644
--- a/src/auth/manager.ts
+++ b/src/auth/manager.ts
@@ -8,7 +8,7 @@ let inflight: Promise<StoredAuth> | undefined
export async function getAuth(): Promise<StoredAuth> {
if (!cached) {
const stored = await loadAuth()
- if (!stored) throw new Error("Not authenticated. Run: ccxp auth login")
+ if (!stored) throw new Error("Not authenticated. Run: claude-openai-proxy auth login")
cached = stored
}
if (cached.expires - REFRESH_MARGIN_MS > Date.now()) {
diff --git a/src/auth/token-store.ts b/src/auth/token-store.ts
index a6a5400..befbdd6 100644
--- a/src/auth/token-store.ts
+++ b/src/auth/token-store.ts
@@ -9,7 +9,7 @@ export interface StoredAuth {
accountId?: string
}
-const DIR = join(homedir(), ".config", "claude-code-chatgpt-proxy")
+const DIR = join(homedir(), ".config", "claude-openai-proxy")
const FILE = join(DIR, "auth.json")
export async function loadAuth(): Promise<StoredAuth | undefined> {
diff --git a/src/cli.ts b/src/cli.ts
index 2188b33..53510dd 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -67,11 +67,11 @@ async function main() {
function usageAndExit(): never {
console.log(`Usage:
- ccxp serve Run proxy (PORT env, default 11434)
- ccxp auth login Browser OAuth (PKCE)
- ccxp auth device Device-code OAuth
- ccxp auth status Show current auth
- ccxp auth logout Clear stored auth
+ claude-openai-proxy serve Run proxy (PORT env, default 11434)
+ claude-openai-proxy auth login Browser OAuth (PKCE)
+ claude-openai-proxy auth device Device-code OAuth
+ claude-openai-proxy auth status Show current auth
+ claude-openai-proxy auth logout Clear stored auth
`)
process.exit(2)
}
diff --git a/src/log.ts b/src/log.ts
index 8f5e741..0aa7545 100644
--- a/src/log.ts
+++ b/src/log.ts
@@ -21,7 +21,7 @@ const REDACT_KEYS = new Set([
function stateDir(): string {
const base = process.env.XDG_STATE_HOME || join(homedir(), ".local", "state")
- return join(base, "claude-code-chatgpt-proxy")
+ return join(base, "claude-openai-proxy")
}
export function logDir(): string {