Skip to main content
Connect Antigravity to CMX so requests from Antigravity pass through the local gateway. CMX compresses eligible context in the background, reducing your provider token usage across longer coding sessions, without requiring any changes to how you use Antigravity.
Prerequisites: CMX must be installed and signed in on your device. Antigravity must already be installed with a configured model provider. CMX does not replace your provider account; you continue managing your provider sign-in through Antigravity as usual.
1

Set Up CMX

Run the guided setup command to sign in, start the local gateway, and detect your coding agents:
Follow the browser sign-in prompt. Once setup completes, the CMX gateway starts at 127.0.0.1:17322 and is ready to accept connections.
2

Connect Antigravity

Open the CMX terminal UI and connect Antigravity to your provider:
  1. Navigate to CONFIG → Antigravity.
  2. Refresh the provider list to make sure your configured provider appears.
  3. Select the provider you use in Antigravity.
  4. Click Connect.
  5. Restart Antigravity so it picks up the new routing through CMX.
Antigravity will now send all requests through the CMX gateway instead of directly to your provider.
3

Verify the Connection

Confirm that Antigravity is routing through CMX correctly:
Send a request from Antigravity as you normally would. Then check CMX for activity:
New requests should appear in the stats output. If you see activity, the connection is working.
Short conversations may show little or no compression. Savings grow with longer sessions as eligible older context accumulates. Compare stats across a full coding session to get a representative picture.

Troubleshooting

If requests from Antigravity are not appearing in cmx stats after a coding session:
  1. Restart Antigravity so the new routing takes effect.
  2. Check the selected connection by opening CONFIG → Antigravity in CMX and confirming the correct provider is connected.
  3. Run the diagnostics command:
For more detailed guidance, see the troubleshooting guide. If the issue persists, contact support with your CMX version, OS, and a description of what happened. Using a tool that is not listed under Providers? See Connect Any OpenAI or Anthropic Agent to CMX for instructions on connecting other tools via a custom base URL, or suggest a provider for us to integrate next.
Last modified on September 22, 2026