Zero-Code Auto-Hook

Inject Aurex at import time so standard LLM client libraries are tracked without modifying call sites.

Agent hint

Use this page when the user wants install-hook, AUREX_ENABLED, or zero-code provider tracking.

In scope

  • aurex install-hook / npx aurex install-hook
  • AUREX_ENABLED activation
  • Uninstall commands

Out of scope

  • Manual singleton setup — see Manual Integration
  • Provider matrix details — see Supported Providers
Python CLI Hook
# 1) Install the hook into your site-packages
aurex install-hook

# 2) Configure env vars and run your application
export AUREX_ENABLED=1
export AUREX_API_KEY=aux_dev_yourkey
python your_app.py   # all OpenAI, Anthropic, Google Gemini, LiteLLM calls tracked
Node.js CLI Hook
# 1) Generate workspace environment file (.env.aurex)
npx aurex install-hook

# 2) Source settings, configure key and run your app
source .env.aurex
export AUREX_API_KEY=aux_dev_yourkey
node your_app.js    # all OpenAI, Anthropic, LiteLLM calls tracked

To deactivate run aurex uninstall-hook (Python) or npx aurex uninstall-hook (Node.js).

See also