- Install Go
go install github.com/ChatGPT-Hackers/ChatGPT-API-server@latest
git clone https://github.com/ChatGPT-Hackers/ChatGPT-API-server/
cd ChatGPT-API-server
go install .
ChatGPT-API-server <port> <SECRET_KEY>
The secret key can be anything you want. It's just for authenticating your users
Take note of your IP address or domain name. This could be localhost
or a remote IP address. The default port is 8080
Check out our firefox agent. More versions in the works.
$ curl "http://localhost:8080/api/ask" -X POST --header 'Authorization: <SECRET_KEY>' -d '{"content": "Hello world", "conversation_id": "<optional>", "parent_id": "<optional>"}'
open docker-compose.yml
and add your own custom api-key in <api-key>
section
version: "3"
services:
chatgpt-api-server:
build: .
ports:
- "8080:8080"
command: ["ChatGPT-API-server", "8080", "<api-key>"]
then run:
docker-compose up
or docker-compose up -d
(if you want a persistent instance)