sailfork / t3code-github / .repos/ alchemy-effect/ website/ src/ content/ docs/ axiom/ setup.mdx

import PackageManagers from "../../../components/PackageManagers.astro";

Sign up at axiom.co and create an API token in the Axiom app. Install @alchemy.run/axiom:

Register the provider next to your cloud's:

// alchemy.run.ts
import * as Axiom from "@alchemy.run/axiom";

providers: Layer.mergeAll(Cloudflare.providers(), Axiom.providers()),

Run alchemy profile edit --add Axiom and choose an API token or personal access token. It is entered interactively and saved under ~/.alchemy/credentials/<profile>/.

In CI (CI=true), profiles are bypassed. Set AXIOM_TOKEN or AXIOM_API_KEY; AXIOM_ORG_ID and AXIOM_URL are optional.

See Profiles for how credentials are stored and switched.

Next steps