Skip to main content

1. Install the SDK

pip install agentx-python

2. Get your API key

Go to Settings → API Keys in the AgentX dashboard and create a workspace key.
export AGENTX_API_KEY=ax_live_xxxxxxxxxxxxxxxx

3. Wrap your agent

from agentx import AgentX

client = AgentX.from_env()

@client.tracer.trace("my-agent", framework="langchain")
def run(query: str) -> str:
    return chain.invoke(query)   # your existing code

run("How do I reset my password?")
# trace is submitted automatically in the background

4. See traces in the UI

Open the Live Traces tab in your workspace — the trace will appear within a few seconds.

Next steps

Full tracing guide

Tool calls, sessions, async agents

CI/CD gate

Block bad releases with eval test sets