Skip to main content

ACM Gateway

ACM keeps your AI assistant's context window small and useful. This package is the gateway, a small local service that does the context work. It trims, summarises, and manages what goes to the model on every call.

The gateway works with VSCode, Cursor, Antigravity, Claude Code, and Windsurf. Your IDE talks to the gateway as if it were the AI. The gateway applies the techniques, then passes the request on to the real provider.

Install

Use uv to install the gateway.

uv tool install acm-context-management

Run

Start the gateway. It serves on http://127.0.0.1:8807.

acm-gateway

To use your own API key, set it first.

export ACM_UPSTREAM_BASE_URL=https://openrouter.ai/api/v1
export ACM_UPSTREAM_API_KEY=your_key_here
acm-gateway

Point your IDE at the gateway

Tell your IDE the AI lives at http://127.0.0.1:8807/v1.

  1. Cursor. Set a custom OpenAI base URL.
  2. Claude Code. Set ANTHROPIC_BASE_URL.

Profiles

A profile decides which techniques are on. Pick one of minimal, long_chat, power_research, cheap_long, or visual_recall. You can also copy the example config and edit it, or set ACM_CONFIG to your own file path.

What the gateway does

  1. Trim. Cut old and large tool outputs.
  2. Summarise. Compress old turns into a short note.
  3. Sliding window. Keep the newest turns and the system prompt.
  4. Image recall. Cache or evict old images.
  5. Visual method. Turn big tool outputs into an image the model reads.
  6. Manual removal. Drop any message by hand. Choices are saved.
  7. Memory. Remember and recall notes across sessions.
  8. Multi provider routing. Route to OpenAI, OpenRouter, Google, Azure, or Anthropic.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acm_context_management-0.3.0.tar.gz (113.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acm_context_management-0.3.0-py3-none-any.whl (122.7 kB view details)

Uploaded Python 3

File details

Details for the file acm_context_management-0.3.0.tar.gz.

File metadata

  • Download URL: acm_context_management-0.3.0.tar.gz
  • Upload date:
  • Size: 113.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for acm_context_management-0.3.0.tar.gz
Algorithm Hash digest
SHA256 99e1964e5f2caa2945fda4991dad4d6c51f36a20383c93ed7357a924fce7c5f8
MD5 ab77b71a4e75292f90b74ae02ac565d3
BLAKE2b-256 dd5ad66da9e1682a39ca09844322cd79aaa1c91c1ee0a963de44fa6f8d830c30

See more details on using hashes here.

File details

Details for the file acm_context_management-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: acm_context_management-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 122.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for acm_context_management-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 997937263e32ae100dc630376406d52b833b9da79f118b976d117a17ff8c3435
MD5 9e55607e4a26f18d366d6dec51bfdcab
BLAKE2b-256 879b0a333a4622e7a29d8d20fa61c945e012968ae1d6035a6db7978671c71dbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page