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

Metadata

Release files for acm-context-management 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acm-context-management 0.3.0
File Size Uploaded Provenance
acm_context_management-0.3.0.tar.gz 113.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for acm-context-management 0.3.0
File Interpreter ABI Platform
acm_context_management-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 236.4 kB

Release files / acm_context_management-0.3.0.tar.gz

Download URL acm_context_management-0.3.0.tar.gz
Size 113.7 kB
Tags Source
SHA-256 checksum
How to use checksums
99e1964e5f2caa2945fda4991dad4d6c51f36a20383c93ed7357a924fce7c5f8
BLAKE2b-256 checksum
How to use checksums
dd5ad66da9e1682a39ca09844322cd79aaa1c91c1ee0a963de44fa6f8d830c30
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / acm_context_management-0.3.0-py3-none-any.whl

Download URL acm_context_management-0.3.0-py3-none-any.whl
Size 122.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
997937263e32ae100dc630376406d52b833b9da79f118b976d117a17ff8c3435
BLAKE2b-256 checksum
How to use checksums
879b0a333a4622e7a29d8d20fa61c945e012968ae1d6035a6db7978671c71dbb
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for acm-context-management 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page