5
近 30 天 +2
883
近 7 天 212
47.7
生态多维模型
6 天前
2026-09-28
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-plugin-bitplan@0.0.5"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-plugin-bitplan@0.0.5"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-plugin-bitplanOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Create private, versioned HTML plans. Keep them hosted while they change, then publish them on Bitcoin when they should be permanent.
Open BitPlan · Read the docs · Install the CLI
Install the agent skill directly from its owning repository:
npx skills add opldotdev/bitplan.dev --skill bitplan -g
The repository also includes native plugin manifests for Claude Code, Codex, and Grok. Marketplace installations therefore load this canonical skill rather than a copied version maintained by another plugin.
BitPlan turns a self-contained HTML file into an encrypted plan. BRC-100 is the interface BitPlan uses to ask your wallet to encrypt and decrypt. Hosted drafts store only ciphertext on bitplan.dev and cost no BSV. When a plan is ready, the wallet can publish that ciphertext as a 1Sat Ordinal. Each on-chain version moves the same satoshi forward, giving the plan one permanent origin.
Quick start
npx bitplan auth
bunx bitplan upload ./plan.html --hosted --link
The command prints a reader link. Open it in a browser without connecting a wallet. Treat the complete link like a password: anyone who has it can read.
Publish the latest hosted version on chain when it is ready:
bunx bitplan inscribe ./plan.html
npx bitplan list
npx bitplan fetch <origin>
npx bitplan version
How it works
flowchart TD
Plan[HTML plan] --> CLI[BitPlan CLI]
CLI -->|Encrypt this plan| Wallet[BRC-100 wallet]
Wallet --> Hosted[Encrypted hosted draft]
Wallet -->|Sign and publish| Bitcoin[1Sat Ordinal]
Hosted --> Site[bitplan.dev]
Bitcoin --> OrdFS[OrdFS]
OrdFS --> Site[bitplan.dev]
Site --> WalletOrLink[Wallet or reader link]
WalletOrLink -->|Decrypt in the browser| Plaintext[Plan]
The CLI validates the HTML, then your wallet encrypts it. BitPlan either keeps the sealed envelope in hosted storage or loads it through OrdFS after an on-chain publish. Decryption happens in the browser.
The viewer shows publishing options when the connected wallet matches a hosted version’s encryption sender, or holds the latest on-chain ordinal. These are different: hosted updates still require the saved draft-update secret. Reading a plan does not grant permission to replace it. The menu copies an agent/CLI handoff using only the public plan ID; it does not sign or publish a transaction.
Versions keep the same origin:
flowchart TD
V1[Version 1<br/>origin] --> V2[Version 2] --> V3[Latest]
Share a plan
Add one or more wallet identity public keys when publishing:
npx bitplan upload ./plan.html \
--share-with <identity-key>
The document is encrypted once. Its document key is wrapped separately for the owner and each invited reader.
flowchart TD
Document[One encrypted document] --> Key[Document key]
Key --> Owner[Owner wallet]
Key --> ReaderA[Reader A identity key]
Key --> ReaderB[Reader B identity key]
Documentation
Repository
| Path | Contents |
|---|---|
apps/web |
Next.js website, plan viewer, docs, and sponsorships |
packages/cli |
Published bitplan command-line package |
packages/opencode-plugin |
opencode-plugin-bitplan: gateway.bitplan.dev as an OpenCode provider, paid from a BRC-100 wallet |
bun install --frozen-lockfile
bun run lint
bun run typecheck
bun test
bun run build
Compatibility tests open CLI-produced envelopes with the website implementation. Wallet and network boundaries use mocks, so the automated suite never publishes a transaction.
BitPlan prefers a BRC-100 wallet already installed by the user. A future 1Sat
CLI headless-wallet bridge is tracked separately; today's 1sat serve wallet
endpoint is a wallet-storage service and is not a BitPlan wallet endpoint.
Contributions are welcome. Start with CONTRIBUTING.md.
License
MIT · Third-party notices are listed in THIRD_PARTY_NOTICES.md.
同类生态推荐
Cache Compact
opencode-cache-compact
Cache-friendly context compaction for OpenCode (V1 and V2): append a summary in place, then cut what the model sees down to it.
Kimi Code Statusline
opencode-kimi-code-statusline
OpenCode TUI plugin: display Kimi For Coding (Kimi Code) subscription quota (rolling 5h / weekly) in the footer statusline. V2-native, zero-config, no cookies.
Elicify Vertex
@elicify-ai/elicify-vertex
OpenCode plugin that makes any coding model behave like a mythos-class engineer: a behavioural contract, live in-loop detection and correction, and an independent verifier that verifies the work against your repo. Self-validating, evidence-driven agent lo