Skip to main content

No project description provided

Project description

ChatMock

Allows Codex to work in your favourite chat apps and coding tools.

PyPI Python License Stars Last Commit Issues



Install

Homebrew

brew tap RayBytes/chatmock
brew install chatmock

pipx / pip

pipx install chatmock

GUI

Download from releases (macOS & Windows)

Docker

See DOCKER.md


Getting Started

# 1. Sign in with your ChatGPT account
chatmock login

# 2. Start the server
chatmock serve

The server runs at http://127.0.0.1:8000 by default. Use http://127.0.0.1:8000/v1 as your base URL for OpenAI-compatible apps.


Example usage

Raycast Integration
  1. Configure the Host URL
    Open your Raycast Extensions preferences, navigate to the Ollama settings section, and input the host URL (default is 127.0.0.1:8000).
    Raycast Ollama Host URL configuration

  2. Sync Your Models
    Click the Sync Models button, which will register all available models.

  3. Start Chatting
    Open the Raycast AI Chat interface. You will now see model slugs which you can chat with.

Terax (Agentic Terminal) Integration
  1. Configure the provider settings
    Open your Terax settings, and switch to the Models tab, add a new provider (OpenAI Compatible), and input the host URL (default is http://127.0.0.1:8000/v1), along with the model IDs you wish to use (API key may be anything).
    image

  2. Favourite, and start using it!
    Go back to your main chat window, select the model by going to the OpenAI Compatible icon, and clicking the model there (you may favourite it here to quickly select it the next time if you switch between models) image


Supported Models

  • gpt-5.5
  • gpt-5.4
  • gpt-5.4-mini
  • gpt-5.3-codex-spark

Features

  • Tool / function calling
  • Vision / image input
  • Thinking summaries (via think tags)
  • Configurable thinking effort
  • Fast mode for supported models
  • Web search tool
  • OpenAI-compatible /v1/responses (HTTP + WebSocket)
  • Ollama-compatible endpoints
  • Reasoning effort exposed as separate models (optional)

Configuration

All flags go after chatmock serve. These can also be set as environment variables.

Flag Env var Options Default Description
--reasoning-effort CHATGPT_LOCAL_REASONING_EFFORT none, minimal, low, medium, high, xhigh medium How hard the model thinks
--reasoning-summary CHATGPT_LOCAL_REASONING_SUMMARY auto, concise, detailed, none auto Thinking summary verbosity
--reasoning-compat CHATGPT_LOCAL_REASONING_COMPAT legacy, o3, think-tags think-tags How reasoning is returned to the client
--fast-mode CHATGPT_LOCAL_FAST_MODE true/false false Priority processing for supported models
--enable-web-search CHATGPT_LOCAL_ENABLE_WEB_SEARCH true/false false Allow the model to search the web
--expose-reasoning-models CHATGPT_LOCAL_EXPOSE_REASONING_MODELS true/false false List each reasoning level as its own model
Web search in a request
{
  "model": "gpt-5.4",
  "messages": [{"role": "user", "content": "latest news on ..."}],
  "responses_tools": [{"type": "web_search"}],
  "responses_tool_choice": "auto"
}
Fast mode in a request
{
  "model": "gpt-5.4",
  "input": "summarize this",
  "fast_mode": true
}

Important notice

Use responsibly and at your own risk. This project is not affiliated with OpenAI.


Star History

Star History Chart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatmock-1.38.tar.gz (56.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatmock-1.38-py3-none-any.whl (63.1 kB view details)

Uploaded Python 3

File details

Details for the file chatmock-1.38.tar.gz.

File metadata

  • Download URL: chatmock-1.38.tar.gz
  • Upload date:
  • Size: 56.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chatmock-1.38.tar.gz
Algorithm Hash digest
SHA256 79ab10f71103dfb3f2f87c9befd27d160c0627728f6f0916a0d2a0ac661048a4
MD5 0891a4fbab47cd6e058b66f0410718f6
BLAKE2b-256 04f17d7fc6c9317af215d7439169cc37106835fff1b010da2ba16a6fbdfdd11c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatmock-1.38.tar.gz:

Publisher: release.yml on RayBytes/ChatMock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chatmock-1.38-py3-none-any.whl.

File metadata

  • Download URL: chatmock-1.38-py3-none-any.whl
  • Upload date:
  • Size: 63.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chatmock-1.38-py3-none-any.whl
Algorithm Hash digest
SHA256 03d67e73a53b94458b6994a75c0191933e02752339b35aaa98b6b49ca7ecaa59
MD5 2a51d40ff77b324a773d8a9b0669bf7d
BLAKE2b-256 088c249fd5fb3b973ce0649d6a95f742a5f80ab18312b304ef8d5b7c29a302c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatmock-1.38-py3-none-any.whl:

Publisher: release.yml on RayBytes/ChatMock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page