# RayBytes/ChatMock

OpenAI & Ollama compatible API powered by Codex

Repository: https://github.com/RayBytes/ChatMock
Canonical: https://ross.abutalabs.com/products/chatmock
Language: Python
License: MIT
License Family: permissive
Topics: ai, chatgpt, codex, gpt-5, ollama, openai, openai-codex-cli, openai-codex-intergration
Last push: 2026-07-26T18:03:52+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 58, longevity 27
- inputs: {"age_days": 383, "days_push": 38, "days_rel": 280, "gap_med": 3, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1534, forks 212 (observed 2026-08-28T04:04:59.735181+00:00)

## What it is
ChatMock is a Python tool that exposes OpenAI- and Ollama-compatible API endpoints backed by a ChatGPT/Codex account login. It runs a local server so any chat app or coding tool supporting those APIs can use Codex models.

## Use cases
- use my ChatGPT/Codex subscription in Raycast AI chat
- connect Codex models to any OpenAI-compatible coding tool
- serve an Ollama-compatible endpoint backed by ChatGPT
- run a local OpenAI API proxy on 127.0.0.1:8000
- use Codex models in agentic terminal tools like Terax
- expose gpt-5 models to third-party chat apps

## When to choose
- you have a ChatGPT/Codex account and want to use it in tools that only speak the OpenAI or Ollama API
- you want a local, self-hosted proxy server rather than paying for separate API keys
- you use tools like Raycast or terminal agents that support OpenAI-compatible providers

## When to avoid
- you need official OpenAI API features like fine-tuning, embeddings, or batch jobs
- you don't have a ChatGPT account and prefer standard pay-per-token API access
- you need production-grade multi-tenant serving rather than a personal local proxy

## Facets
- artifact type: service
- maturity: active
- function: llm-inference, http-server, api-framework, chatbot
- domain: large-language-models, artificial-intelligence, developer-tools, apis
- platform: windows, cli, python
- tags: openai-compatible-api, ollama-compatible, codex, chatgpt, local-proxy-server, gpt-5, macos, linux, docker

## Member repositories
- RayBytes/ChatMock (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.735181+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:11.268011+00:00, confidence not recorded.
  - readme: https://github.com/RayBytes/ChatMock (fetched 2026-08-28T04:04:59.735181+00:00, sha 322c8c7575fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
