# adTraces > Self-hosted hub for coding-agent sessions (traces): upload, share, browse, search and summarize them. API-compatible with the official `traces` CLI. ## Instructions for AI agents - Instance: https://adtraces.adfactory.app - Install the CLI: `npm i -g @traces-sh/traces`, `brew install market-dot-dev/tap/traces`, or `curl -fsSL https://adtraces.adfactory.app/install | bash` - Point the CLI at this instance: set `TRACES_HTTP_URL`, `TRACES_URL` and `TRACES_API_URL` to `https://adtraces.adfactory.app`; optionally `TRACES_API_KEY=trk_...` - Share a trace: `traces share --cwd . --agent auto` - HTTP API: `https://adtraces.adfactory.app/v1/...` with `Authorization: Bearer trk_...`. Responses: `{ "ok": true, "data": ... }` or `{ "ok": false, "error": { "code", "message" } }` - MCP: `https://adtraces.adfactory.app/mcp` (Streamable HTTP, bearer API key with scope `traces:read`) - Agent onboarding: https://adtraces.adfactory.app/start.md ## Resources - [OpenAPI specification](https://adtraces.adfactory.app/openapi.json) - [Full docs for LLMs](https://adtraces.adfactory.app/llms-full.txt) - [Sitemap](https://adtraces.adfactory.app/sitemap.xml) ## Getting Started - [Getting Started](https://adtraces.adfactory.app/llms.mdx/docs/getting-started): Connect the traces CLI to this adTraces instance and share your first session. - [Installation](https://adtraces.adfactory.app/llms.mdx/docs/getting-started/installation): Install the official traces CLI and set the environment for adTraces. - [Authentication](https://adtraces.adfactory.app/llms.mdx/docs/getting-started/authentication): Sign in with the device flow or use an API key. ## CLI - [CLI](https://adtraces.adfactory.app/llms.mdx/docs/cli): The traces command line tool, as used with adTraces. - [Commands](https://adtraces.adfactory.app/llms.mdx/docs/cli/commands): Reference for the traces CLI commands you use with adTraces. - [Search](https://adtraces.adfactory.app/llms.mdx/docs/cli/search): Find local traces from the terminal. - [Supported agents](https://adtraces.adfactory.app/llms.mdx/docs/cli/supported-agents): Agents the traces CLI can read. - [Troubleshooting](https://adtraces.adfactory.app/llms.mdx/docs/cli/troubleshooting): Diagnose common problems when using the CLI with adTraces. ## Agents - [Agents](https://adtraces.adfactory.app/llms.mdx/docs/agents): Share sessions from inside your coding agent with skills and hooks. ## Sharing - [Sharing](https://adtraces.adfactory.app/llms.mdx/docs/sharing): Upload sessions, control who can see them, and share from CI. - [Sharing via CLI](https://adtraces.adfactory.app/llms.mdx/docs/sharing/cli): Share and refresh a session with the traces CLI. - [Sharing via API key](https://adtraces.adfactory.app/llms.mdx/docs/sharing/api-key): Share from CI, containers and scripts without an interactive login, including a GitHub Action. - [Visibility](https://adtraces.adfactory.app/llms.mdx/docs/sharing/visibility): Private, direct and public traces. ## Orgs - [Orgs](https://adtraces.adfactory.app/llms.mdx/docs/orgs): Teams share one namespace with roles, invites and privacy rules. - [Members and invites](https://adtraces.adfactory.app/llms.mdx/docs/orgs/members): Roles, invite links and joining an organization. - [Privacy settings](https://adtraces.adfactory.app/llms.mdx/docs/orgs/privacy): Control which visibilities a namespace allows. ## MCP - [MCP](https://adtraces.adfactory.app/llms.mdx/docs/mcp): Let agents search and read traces over the Model Context Protocol. ## Learning skills - [Learning skills](https://adtraces.adfactory.app/llms.mdx/docs/skills): Find out which agent skills work, where they snag, and what a better SKILL.md could look like, based on your recorded sessions. ## Surfaces - [Surfaces](https://adtraces.adfactory.app/llms.mdx/docs/surfaces): Custom HTML views that open as tabs on a trace. - [Publishing surfaces](https://adtraces.adfactory.app/llms.mdx/docs/surfaces/publishing): Create a surface and upload versions through the API. ## API - [API overview](https://adtraces.adfactory.app/llms.mdx/docs/api): The HTTP API of adTraces, compatible with the traces.com v1 API. - [Namespaces API](https://adtraces.adfactory.app/llms.mdx/docs/api/namespaces): Read namespaces, members and invites; create organizations. - [Traces API](https://adtraces.adfactory.app/llms.mdx/docs/api/traces): List, read, create, update and delete traces. - [Messages API](https://adtraces.adfactory.app/llms.mdx/docs/api/messages): List and upload the messages of a trace. ## Self-Hosting - [Self-Hosting](https://adtraces.adfactory.app/llms.mdx/docs/self-hosting): Run adTraces with Docker Compose. - [Configuration](https://adtraces.adfactory.app/llms.mdx/docs/self-hosting/configuration): Environment variables of adTraces and of the traces CLI.