mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
e0331b43bf64321f920c0531789056cdd7aa49bc
Add a GitHub Actions-style store for secrets and variables so tests can read
credentials from the environment without .env files in the repo.
- secrets table keyed by kind, repo (NULL for global) and environment;
secrets are encrypted with encryptSecret and write-only, variables are plain
text. Names follow GitHub's rules and reject Manager-reserved names.
- Global (/api/secrets, /api/variables) and repo
(/api/repos/:id/secrets|variables) routes.
- The trusted .ocm/project.json gains environment and env fields that map
names to ${{ secrets.X }} / ${{ vars.X }} expressions. Both are part of the
trust hash; files without them hash as before, so existing trust survives.
- RepoEnvService.resolveForDirectory resolves the repo and approved mapping
for any directory, including worktrees outside the repo folder, with
environment > repo > global precedence. It never throws.
- /api/internal/shell-env replaces /git-credentials/gh-env and feeds the
ocm-gh-env plugin, the sandbox shell plan and TerminalService.create.
- The plugin masks injected secret values as *** in completed tool results.
- The sandbox shell plan is now the only source of the guest environment: the
plugin pins OCM_SANDBOX_FORWARD_ENV and the shim forwards only those names.
OpenCode Manager
A self-hosted command center for OpenCode. Sessions, git, terminal, and schedules in one web app, on your desktop and your phone.
opencodemanager.app · Docs · Releases
Quick Start
Requires Docker with Compose v2.
curl -fsSL https://opencodemanager.app/install | sh
The installer starts OpenCode Manager on http://localhost:5003 and asks before sharing anything from your machine. Re-run it to update. On first launch you create an admin account.
Requirements, Compose and source installs, and every feature are covered at opencodemanager.app:
Development
This repository is a pnpm workspace: backend/ (Bun + Hono), frontend/ (React + Vite), shared/ (schemas and types) and ocm-cli/ (the ocm CLI).
pnpm install
pnpm dev
pnpm lint
pnpm typecheck
pnpm test
See the Development Guide for setup, scripts, database notes and testing.
License
MIT
Description
No description provided
agentai-agentsai-codingcoding-agentdeveloper-toolsdockerllmmobileopencodepwareactremote-developmentself-hostedterminalweb
Readme
MIT
77 MiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
99.5%
Shell
0.3%
CSS
0.1%