Metadata-Version: 2.5
Name: diff-chat
Version: 0.1.0
Summary: A local group chat for model comparisons and shared discussions
Project-URL: Repository, https://github.com/aadilchallawala-cloud/diff-chat
Project-URL: Issues, https://github.com/aadilchallawala-cloud/diff-chat/issues
Project-URL: Changelog, https://github.com/aadilchallawala-cloud/diff-chat/releases
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: fastapi==0.165.0
Requires-Dist: httpx==0.29.0
Requires-Dist: keyring==25.7.0
Requires-Dist: pillow==13.0.0
Requires-Dist: pypdf==7.2.0
Requires-Dist: uvicorn==0.55.0
Description-Content-Type: text/markdown

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/banner-dark.svg">
  <img src="https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/banner.svg" width="100%" alt="diff">
</picture>

Ask once. Hear from Claude, ChatGPT, Gemini and local models in the same chat — on the plans you already pay for.

[![CI](https://github.com/aadilchallawala-cloud/diff-chat/actions/workflows/tests.yml/badge.svg)](https://github.com/aadilchallawala-cloud/diff-chat/actions/workflows/tests.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-536754)](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/LICENSE)
[![PyPI version](https://img.shields.io/pypi/v/diff-chat)](https://pypi.org/project/diff-chat/)

![Claude and ChatGPT discuss a four-day week and compare their answers](https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/demo.gif)

In the demo, we asked whether a six-person team should try a four-day week. Claude worried that staggering days off would leave just one or two people on duty. ChatGPT pointed out that with a staggered schedule, at least four people could work each day. Claude agreed it had the numbers wrong. By the second round, both backed a three-month trial, provided nobody had to work evenings or days off.

## Install

You'll need Python 3.11 or newer and [pipx](https://pipx.pypa.io/stable/installation/). Run these commands in a terminal.

```sh
pipx ensurepath
pipx install diff-chat
diff-chat
```

The last command opens diff in your browser on macOS, Windows or Linux. If your terminal can't find `diff-chat`, open a new terminal so it picks up the updated PATH. To run a source checkout, use `pipx install .` from the project folder. A signed Mac app is planned.

## Connect your first model

You can start with one. Setup shows which tools diff found and how to install anything missing. Later, open **Settings → Models → Connect models** to add or disconnect one.

| Participant | Tool | What you need | How to connect |
| --- | --- | --- | --- |
| Claude | Claude Code 2.1.280 | Claude Pro or higher. [Plans](https://code.claude.com/docs/en/quickstart) | Run `claude auth login --claudeai`. |
| ChatGPT | Codex CLI 0.166.0 | Any ChatGPT plan, including Free. [Plan details](https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan) | Run `codex login`. |
| Gemini | Antigravity CLI 1.5.20 (`agy`) | An eligible Google account. The free tier works. [Eligibility](https://antigravity.google/docs/faq) | Choose **Connect Gemini**, or run `diff-chat --login-gemini`, then select Google OAuth. |
| Local | Ollama | Enough space and memory for the model you choose. Ollama is free. [Setup](https://docs.ollama.com/quickstart) | Open Ollama or run `ollama serve`. To download a first model, try `ollama pull gemma3:4b`. |

Have Claude Pro? Add a free ChatGPT account for the full experience.

## In a chat

Click the names beside the message box to choose who replies. To ask just Claude, start your message with `@claude`. You can choose a model and role for each participant, and set the reasoning level where the provider supports it.

| After a round | What happens |
| --- | --- |
| Continue | The participants read each other's answers and reply once more. |
| Find agreement | They take turns looking for a position everyone accepts. You see the maximum number of replies before you start. |
| Combine | Choose one participant to write a single answer and flag anything still unresolved. |
| Compare replies (Diff view) | Read two replies side by side. A short summary covers where everyone in the round agreed and differed. |

You can attach a document or a supported image, edit a question, retry a reply, or branch the chat to try another line of argument. Pin chats you come back to often, or search by title and message. You can export a single chat as Markdown or your whole library as Markdown or JSON.

**Shared memory** is for things you're tired of repeating. A note can belong to one chat or follow you across chats. **Import from another AI** lets you edit or untick each fact before saving it. Settings also has light and dark themes, font and accent choices, and a switch for the animated characters. The characters follow your system's reduced-motion setting.

## How it works

`diff-chat` starts a server on `127.0.0.1`. The private link it opens contains a fresh token that protects the API and the live reply stream.

For Claude, ChatGPT and Gemini, diff runs the provider's official CLI in an empty temporary folder with file and shell tools restricted. Web search is available where the provider supports it. A CLI that can resume a session gets the new messages since its last turn. When a conversation gets long, diff can use a cheaper model of your choice to summarize it. Local connects to Ollama on your computer and lists the models you've installed. [Adapter details](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/docs/cli-adapters.md)

## Privacy

Your saved chats, memory and settings stay on your computer. **Settings → Data** shows the folder. diff collects no telemetry.

When you invite a cloud model, its provider receives the messages, shared notes and attachments needed for that reply. Its own data and telemetry policies apply. To keep a conversation local, leave only **Local** on in the message box. Ollama will handle the summaries too. If you enable API fallback, diff stores the key in your OS keychain and the provider bills that usage separately. Checking for an update contacts GitHub.

## Limitations

- Cloud replies, comparisons and summaries draw on your plan. **Find agreement** can use several rounds and still end in disagreement.
- Usage meters show the allowance left and when it resets, if the provider reports those figures. Gemini gets its reading from Antigravity's `/usage` command. Some accounts show only a weekly allowance. Local has no plan limit.
- Smaller local models can miss earlier details or struggle with a harder question. Image support depends on the model. Codex may return a whole reply at once.
- diff depends on the providers' CLI versions, account rules and terms. On Windows, Codex may need Developer Mode to link its local credentials. [Anthropic's CLI guidance](https://code.claude.com/docs/en/legal-and-compliance) · [OpenAI's terms](https://openai.com/policies/terms-of-use/) · [Google's Antigravity terms](https://antigravity.google/terms)

Unofficial. Not affiliated with or endorsed by Anthropic, OpenAI, or Google.

## Contributing

To run the tests or make a change, start with [Contributing](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/CONTRIBUTING.md). For a new participant, see the [adapter guide](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/adapters/README.md). Please report vulnerabilities through the [security policy](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/SECURITY.md).

## License

diff is [MIT licensed](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/LICENSE). The fonts and bundled libraries have their own [third-party notices](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/static/vendor/LICENSES.txt). [Character credits](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.0/static/characters/CREDITS.md)
