@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
md 1.25 KB

@alchemy.run/infisical

Infisical secrets for Alchemy. Load an Infisical environment into your Stack, with nothing written to process.env or disk.

npm install alchemy @alchemy.run/infisical effect

Pick the environment per stage, then read secrets with Effect Config:

// alchemy.run.ts
import * as Alchemy from "alchemy";
import * as Infisical from "@alchemy.run/infisical";
import * as Config from "effect/Config";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";

export default Alchemy.Stack(
  "MyApp",
  {
    providers: Layer.empty,
    state: Alchemy.localState(),
    secrets: [
      Infisical.Secrets(({ stage }) => ({
        project: "my-app",
        environment: stage === "prod" ? "prod" : "dev",
        path: "/api",
      })),
    ],
  },
  Effect.gen(function* () {
    const databaseUrl = yield* Config.Redacted("DATABASE_URL");
    return {};
  }),
);

Connect your account once with alchemy profile edit --add Infisical.

Learn more