MCPcopy Index your code
hub / github.com/ahmedhosssam/chatbang

github.com/ahmedhosssam/chatbang @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
3 symbols 9 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chatbang

Chatbang is a simple tool to access ChatGPT from the terminal, without needing for an API key.

Chatbang

Installation

On Linux:

curl -L https://github.com/ahmedhosssam/chatbang/releases/download/v0.0.1/myprogram -o chatbang
chmod +x chatbang
sudo mv chatbang /usr/bin/chatbang

Install from source:

git clone git@github.com:ahmedhosssam/chatbang.git
cd chatbang
go mod tidy
go build main.go
sudo mv main /usr/bin/chatbang

Usage

It's very simple, just type chatbang in the terminal.

chatbang

Configuration

Note: You need to execute chatbang --config at least once to create the config file in the directory $HOME/.config/chatbang.

Chatbang requires a Chromium-based browser (e.g. Chrome, Edge, Brave) to work, so you need to have one installed. And then make sure that the config file points to the right path of your chosen browser in the default config path for Chatbang: $HOME/.config/chatbang/chatbang.

It's default is:

browser=/usr/bin/google-chrome

Change it to the right path of your favorite Chromium-based browser.

Note: Chatbang doesn't work when the browser is installed with Snap, the only option right now is to install it in /bin or /usr/bin.

Then, you need to log in to ChatGPT in Chatbang's Chromium session, so you need to do:

chatbang --config

That will open Chatbang's Chromium session on ChatGPT's website, log in with your account.

Then, you will need to allow the clipboard permission for ChatGPT's website (on the same session).

How it works?

Chatbang works by scraping ChatGPT's website. It opens ChatGPT on a headless session when you execute Chatbang and take your prompt and paste it in ChatGPT's prompt area and execute that prompt, then it waits for the response and copies it as a markdown format and then render it in the terminal.

Core symbols most depended-on inside this repo

runChatGPT
called by 1
main.go
loginProfile
called by 1
main.go
main
called by 0
main.go

Shape

Function 3

Languages

Go100%

Modules by API surface

main.go3 symbols

For agents

$ claude mcp add chatbang \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page