| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Foundry is an Electron desktop application for managing local AI agent Runtime configurations. The current release focuses on custom Provider management for Codex and Claude Code: define connection and model settings once, preview the resulting configuration changes, and apply them to the corresponding local Runtime.
Foundry is in an early stage. Provider and Runtime management are functional; the Skills area is currently a placeholder, and broader tools, agents, and workflows remain future work.
Tagged builds are published on the GitHub Releases page. The current automated release workflow produces an unsigned, unnotarized macOS Universal DMG, so macOS may require explicit approval before opening it.
| Runtime | Configuration file | Managed configuration | Reload behavior |
|---|---|---|---|
| Codex | ~/.codex/config.toml | Model selection and a Foundry-managed model_providers entry | Foundry can gracefully restart an already-running ChatGPT desktop app on macOS. Existing Codex CLI sessions must be restarted manually. |
| Claude Code | ~/.claude/settings.json | Anthropic endpoint, token, model-role mappings, fallback model, and subagent model under env | Existing Claude Code CLI sessions must be restarted manually. |
Restoring Official Default removes the Runtime selection overrides managed by Foundry. It does not delete saved Provider records or unrelated Runtime settings.
When an in-use Provider is edited, Foundry saves the Provider first and reapplies it only when a Runtime-effective field changed. If the reapply fails, the saved Provider remains available and the dialog offers the existing Apply retry flow.
Provider tests run in the Electron main process with a 15-second timeout and do not follow redirects.
Foundry treats configuration writes as a previewed and recoverable operation:
Provider records, including API keys and avatars, are stored in a local SQLite database named foundry.sqlite under Electron's platform-specific userData directory. Applied API keys are also written to the target Runtime configuration because the Runtime requires them. Treat both the Foundry user-data directory and Runtime configuration files as sensitive local data.
Automatic restart is intentionally narrow and available only on macOS:
Restarting ChatGPT affects the entire desktop application and may interrupt work in its Chat, Work, and Codex views.
pnpm install
pnpm devpnpm test
pnpm typecheck
pnpm lint
pnpm buildpnpm build:mac
pnpm build:win
pnpm build:linuxpnpm build:unpack creates an unpacked application directory for local packaging checks. Pushing a v* tag runs the release workflow, builds a macOS Universal DMG, and attaches it to a GitHub Release. Automated release artifacts are not currently signed or notarized.
src/main/ Electron lifecycle, SQLite storage, configuration writes,
connection tests, and native ChatGPT control
src/preload/ Narrow contextBridge APIs for Provider and Runtime operations
src/renderer/ React UI, page workflows, and renderer-side response validation
src/shared/ Typed Provider and Runtime contracts shared across processes
resources/ Runtime packaging assets
build/ electron-builder resources and macOS entitlements
The renderer does not receive arbitrary filesystem, process, shell, or IPC access. Native operations remain in the main process and are exposed through purpose-specific preload methods with constrained inputs and validated responses.
Foundry is licensed under the Apache License 2.0.
| Back | FazBrowse Home | New Git URL |