chatbang: Access ChatGPT from the Terminal

Summary
Chatbang is a Go CLI that provides terminal access to ChatGPT without requiring an API key. It uses a Chromium browser session, so it suits users who prefer a terminal interface and already have a compatible browser installed.
At a glance
- Language
- Go
- License
- MIT
- Stars
- 180
- Forks
- 26
- Added to OSRepos
- October 17, 2025
- Last analyzed
- October 3, 2026
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Chatbang lets you access ChatGPT from the terminal without configuring an API key. It is intended for people who want a command-line way to interact with ChatGPT using their logged-in browser session.
Rather than connecting through an API, the tool relies on a Chromium-based browser and a ChatGPT login. This makes it relevant when avoiding API-key setup is more important than using a dedicated API integration.
Key Features
- Opens ChatGPT through a Chromium-based browser session.
- Provides a terminal command for starting an interaction with ChatGPT.
- Works without a ChatGPT API key.
- Offers configuration to set the browser executable path.
- Uses the browser session for account login and requires clipboard permission for ChatGPT.
- Can be installed from a release binary or built from source.
Use Cases
- Terminal users who want to access ChatGPT without switching to a browser window for each interaction.
- Individuals who do not have an API key and prefer to use their existing ChatGPT login.
- Developers who want to try a small Go-based command-line interface for ChatGPT.
Project Facts
- Language: Go
- License: MIT
- Stars: 180
- Forks: 26
- Archived: No
Getting Started
On Linux, download and install the latest release:
curl -L https://github.com/ahmedhosssam/chatbang/releases/latest/download/chatbang -o chatbang
chmod +x chatbang
sudo mv chatbang /usr/bin/chatbang
Then run chatbang --config to create configuration and open the browser session. See the README for browser setup and source installation details.
Alternatives
- zero: Zero focuses on coding tasks in repositories and supports hosted or local models, while chatbang provides terminal access to ChatGPT through a browser session.
Considerations
Chatbang requires a Chromium-based browser, a ChatGPT account login in its browser session, and clipboard permission for ChatGPT. The README says Snap-installed browsers are not supported and recommends a browser executable located in /bin or /usr/bin. The documented binary installation instructions are for Linux.
Found this useful?
Share it with someone who would like chatbang.
Comparisons
Source repository
Open the original repository on GitHub.
22 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

ai-observer: Monitor AI Coding Assistant Usage Locally
October 4, 2026
AI Observer is a self-hosted OpenTelemetry backend and dashboard for tracking usage across local AI coding assistants. It brings token and cost data, traces, logs, and metrics together in DuckDB, with both OTLP ingestion and file-based import or watching for supported tools.

e2a: Email API for Applications and AI Agents
September 29, 2026
e2a provides an email API and relay for applications and AI agents. It supports transactional sending, inbound mailboxes, and agent replies, with optional human review and hosted or Docker-based deployment.

router: Route AI Requests to the Best Model
September 28, 2026
weave-os/router is a Go proxy that routes AI requests across configured model providers, while accepting Anthropic, OpenAI, and Gemini API formats. It suits developers who want model choice and routing behind one endpoint, including agent and coding-tool users.

ksail: Create and Operate Kubernetes Clusters
September 27, 2026
KSail is a Go-based toolkit for creating and operating Kubernetes clusters across local, nested, and cloud providers. It brings provisioning, GitOps, secrets, cluster operations, and AI interfaces into one tool, for developers and platform teams who want a unified workflow.