https://github.com/Compresr-ai/Context-Gateway
Context Gateway is an agentic proxy that enhances any AI agent workflow with instant history compaction and context optimization tools
https://github.com/Compresr-ai/Context-Gateway
Last synced: about 2 months ago
JSON representation
Context Gateway is an agentic proxy that enhances any AI agent workflow with instant history compaction and context optimization tools
- Host: GitHub
- URL: https://github.com/Compresr-ai/Context-Gateway
- Owner: Compresr-ai
- License: apache-2.0
- Created: 2026-02-10T14:21:20.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-18T04:11:29.000Z (2 months ago)
- Last Synced: 2026-04-01T16:49:20.389Z (2 months ago)
- Language: Go
- Size: 1.77 MB
- Stars: 567
- Watchers: 4
- Forks: 45
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-claude-code - **Context-Gateway** - An agentic proxy that enhances any AI agent workflow with instant history compaction and context optimization tools. (🏗️ Infrastructure & Proxies)
README
Instant history compaction and context optimization for AI agents
---
# Context Gateway
**[Compresr](https://compresr.ai)** is a YC-backed company building LLM prompt compression and context optimization.
Context Gateway sits between your AI agent (Claude Code, Cursor, etc.) and the LLM API. When your conversation gets too long, it compresses history **in the background** so you never wait for compaction.
## Quick Start
```bash
# Install gateway binary
curl -fsSL https://compresr.ai/api/install | sh
# Then select an agent (opens interactive TUI wizard)
context-gateway
```
The TUI wizard will help you:
- Choose an agent (claude_code, cursor, openclaw, or custom)
- Create/edit configuration:
- Summarizer model and api key
- enable slack notifications if needed
- Set trigger threshold for compression (default: 75%)
Supported agents:
- **claude_code**: Claude Code IDE integration
- **cursor**: Cursor IDE integration
- **openclaw**: Open-source Claude Code alternative
- **custom**: Bring your own agent configuration
## What you'll notice
- **No more waiting** when conversation hits context limits
- Compaction happens instantly (summary was pre-computed in background)
- Check `logs/history_compaction.jsonl` to see what's happening
## Contributing
We welcome contributions! Please join our [Discord](https://discord.gg/PeaVWNjT) to contribute.