Skip to content

feat: bitrefill init for OpenClaw and credential store#5

Merged
marcopesani merged 5 commits intomasterfrom
feat/bitrefill-init-openclaw
Mar 31, 2026
Merged

feat: bitrefill init for OpenClaw and credential store#5
marcopesani merged 5 commits intomasterfrom
feat/bitrefill-init-openclaw

Conversation

@marcopesani
Copy link
Copy Markdown
Contributor

Summary

Adds bitrefill init to validate an API key, store it in ~/.config/bitrefill-cli/credentials.json (0600), and optionally register Bitrefill as an MCP server for OpenClaw with ${BITREFILL_API_KEY} in openclaw.json (no plaintext key in config). Generates ~/.openclaw/skills/bitrefill/SKILL.md when OpenClaw is detected or --openclaw is passed.

Changes

  • Credential store: resolveApiKeyWithStore() — flag > env > stored file; chmod after write so permissions stay 0600 on overwrite.
  • Init: masked interactive prompt, MCP tools/list validation, ~/.openclaw/.env merge, openclaw.json merge, redacted summary.
  • CLI: early init handler; init --help / init -h show dedicated help without running init.
  • Docs: README quick start, OpenClaw + Telegram, key resolution order.
  • Chore: .env.local in .gitignore, .cursorignore for env files.

Testing

  • pnpm test (41 tests)
  • pnpm build, pnpm format

Made with Cursor

@marcopesani marcopesani merged commit a1db292 into master Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant