Metadata-Version: 2.4
Name: gptkeeper
Version: 0.1.1
Summary: Python client for GATEKEEPER
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31

# GATEKEEPER

GATEKEEPER is a local browser-backed AI gateway that allows applications to communicate with ChatGPT through an authenticated Chrome session.

It exposes a simple local API that can be used by other applications and services.

## Architecture

```text
Application
     │
     ▼
GATEKEEPER API
     │
     ▼
Chrome DevTools Protocol
     │
     ▼
Chrome + ChatGPT
```

## Project Structure

```text
GATEKEEPER/
├── src/
│   ├── gatekeeper/
│   │   ├── __init__.py
│   │   └── client.py
│   ├── backends.py
│   ├── browser_bridge.py
│   ├── models.py
│   └── main.py
├── pyproject.toml
├── README.md
└── requirements.txt
```

## Python Client

Install the client:

```bash
pip install gptkeeper
```

Use it from Python:

```python
from gatekeeper import ask

response = ask("Hello from Python!")

print(response)
```

## Local API

The default GATEKEEPER API runs at:

```text
http://127.0.0.1:8000
```

Health check:

```text
GET /health
```

Chat endpoint:

```text
POST /v1/chat/completions
```

## Status

GATEKEEPER is currently in early development.

The current focus is building a reliable local bridge between applications, the GATEKEEPER API, and an authenticated ChatGPT browser session.

## License

MIT

## Contact
For any issue regarding the project, contact me at [thatsheikhguy@gmail.com](mailto:thatsheikhguy@gmail.com).
