Skip to content

Security: ZenHG/opencode-moa

Security

SECURITY.md

Security Policy

Reporting a Vulnerability

If you discover a security vulnerability in this project, please report it responsibly:

API Key Safety

This configuration package uses OpenCode Go API keys. Please observe:

  • Never commit real API keys to git — the key file .opencode/local/opencode-go.key is git-ignored by design.
  • Never paste real keys in Issues, PRs, or Discussions.
  • Use the {file:} provider option to reference the key file externally; do not inline the key in opencode.json.
  • If you accidentally exposed a key, rotate it immediately at opencode.ai/auth.

Model Provider Keys

If you switch from the default Go plan to your own provider (Anthropic, OpenAI, etc.), the same rules apply:

  • Store keys in git-ignored local files, never in tracked config.
  • Use {file:} references in opencode.json.

联网与子进程面(如实披露)

  • install.ps1 / install.sh 会下载依赖(pwsh/Node/jq)并写入用户配置;下载源为官方发布页与 npm registry。
  • longloop/long-loop.ps1 会在本机起 opencode serve(默认 127.0.0.1,端口 4096 起顺延),并设置 OPENCODE_PASSWORD 做 Basic auth;不对外监听。
  • longloop/server.js 作为本地 MCP 子进程运行,只读写 <项目>/.moa/longloop/ 下的状态文件。
  • 模型请求走用户配置的 provider(默认 opencode-go),本包不代理、不留存任何请求内容。
  • 仓库内不含任何 key/token;install.* 只写占位符 <YOUR_GO_API_KEY>。

Scope

This project is a configuration package, not runtime code. Its attack surface is limited to:

  • The opencode.json provider configuration (key file path reference).
  • The agent .md frontmatter (model IDs, no secrets).

There is no executable code shipped; all logic lives in OpenCode itself.

There aren't any published security advisories