Skip to content

Install the cloud proxy

The shipped Cloud Proxy setup is a fleet proxy configuration, not a per-tool SDK override. Set it up from Settings -> AI -> Cloud Proxy, then deploy the generated MDM payload to the devices you want to meter.

Step 1 - Provision the org key

  1. Go to Settings -> AI -> Cloud Proxy.
  2. Click Provision org key.
  3. Copy the cleartext key from the reveal dialog. It is shown once.
  4. Save it in your MDM secret store. The generated payload refers to it as MDM_FLOWSTATE_KEY unless you rename the secret in your MDM.

The key is org-scoped. The per-device subject comes from the Basic Auth username in the proxy URL, which the generated MDM payload fills with the user's work email.

To rotate, click Re-provision (rotate) and update the MDM secret. The previous active org key is revoked as part of rotation.

Step 2 - Deploy the MDM payload

Open the MDM tab that matches your fleet and paste the payload into that MDM's configuration surface.

MDM tabWhat the payload sets
Jamf ProLaunchAgent-style environment for HTTP_PROXY, HTTPS_PROXY, and NO_PROXY.
IntunePowerShell/system environment variables for Windows devices.
KandjiShell payload writing proxy variables for managed macOS devices.
MosyleShell payload writing proxy variables for managed macOS devices.
Google WorkspaceManaged Chrome/ChromeOS fixed proxy settings.
JumpCloudShell command payload for managed devices.
ShellManual fallback for devices without MDM.

The payloads all use the same proxy shape:

text
https://<user-email>:<org-key>@ai.flowstate.inc

The generated payload chooses the right user-email placeholder for the MDM tab you picked. Do not replace that placeholder with a single shared email; subject attribution depends on it being per device or per signed-in user.

Step 3 - Verify a device routes through the proxy

From a device with the payload applied, run a simple request through the proxy. For a manual check:

sh
export FLOWSTATE_PROXY='https://ai.flowstate.inc'
export FLOWSTATE_USER_EMAIL='person@example.com'
export FLOWSTATE_ORG_KEY='<the reveal-once org key>'

curl -sS -i \
  --proxy "$FLOWSTATE_PROXY" \
  --proxy-user "$FLOWSTATE_USER_EMAIL:$FLOWSTATE_ORG_KEY" \
  https://api.openai.com/v1/models \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  | head -20

A provider response, usually 200 or an upstream vendor auth error, proves the proxy path was used. A proxy auth error means Flowstate rejected the proxy credential before forwarding the request.

Step 4 - Confirm it in Flowstate

Within a few minutes:

  • the connection status card moves from Not configured or Pending to Active;
  • First seen and Last capture timestamps appear;
  • the current-month subject meter includes the user's email with request totals.

The subject meter is the Cloud Proxy's shipped customer-visible output. Detailed AI session content, prompt-quality scoring, and request-time policy blocking require the Flowstate Agent in the appropriate capture/enforcement mode.

Common Rollout Notes

  • GUI apps often need to restart before they read new proxy environment variables.
  • Some tools ignore HTTP_PROXY / HTTPS_PROXY; they will not be metered by the Cloud Proxy unless they can be configured to use the system proxy.
  • Keep NO_PROXY narrow. A broad domain pattern can accidentally bypass the proxy for AI providers.
  • The Cloud Proxy does not replace provider billing connectors. Use Usage providers for invoice reconciliation.

Where to Go Next

Flowstate Documentation