askrobots / dbbasic-browser
Public
A desktop browser with x402 built in: when a page asks for payment, it pays in stablecoins and shows the content.
danq9
site icons (favicons) in tabs, address bar suggestions and the bookmarks panel
7249579
15 hours, 42 minutes ago
History
.env.example · 2.1 KB · 34 lines
| 1 | # Copy to .env and fill in. .env is gitignored — never commit real keys. |
| 2 | # |
| 3 | # The session hot-wallet key the engine signs payments with. For testing use a FRESH |
| 4 | # testnet key (see the "testnet key + funding" guide), never a real wallet, never the |
| 5 | # public Anvil key. Fund the matching address with testnet USDC from faucet.circle.com |
| 6 | # (Base Sepolia). In the real build this moves to the OS keychain. |
| 7 | X402_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 |
| 8 | X402_ADDRESS=0x0000000000000000000000000000000000000000 |
| 9 | |
| 10 | # A second wallet we control, used as the demo's payTo so payments circulate (buyer → |
| 11 | # merchant) instead of leaving — lets us pay repeatedly and refund without draining the |
| 12 | # faucet. Generate the same way as the hot wallet. |
| 13 | X402_MERCHANT_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 |
| 14 | X402_MERCHANT_ADDRESS=0x0000000000000000000000000000000000000000 |
| 15 | |
| 16 | # x402 facilitator API base (Base Sepolia). Endpoints: /verify, /settle, /supported. |
| 17 | X402_FACILITATOR=https://x402.org/facilitator |
| 18 | |
| 19 | # --------------------------------------------------------------------------------------------- |
| 20 | # AI Reader (TL;DR summaries). Unlike the wallet settings above, these should NOT live in a |
| 21 | # .env inside this repository: keep them in a private file outside it, e.g. ~/.dbbasic/env |
| 22 | # (same NAME=value shape). The browser reads them at runtime from the process environment, then |
| 23 | # from the file named by DBB_ENV_FILE, then from ~/.dbbasic/env — and only the names below are |
| 24 | # ever read out of a file. test/secrets.test.ts fails the suite if an API key is ever committed. |
| 25 | # --------------------------------------------------------------------------------------------- |
| 26 | #ANTHROPIC_API_KEY= |
| 27 | #OPENAI_API_KEY= |
| 28 | |
| 29 | # Which provider to use when both keys are present (default: anthropic). |
| 30 | #DBB_AI_PROVIDER=anthropic |
| 31 | # Model overrides. Defaults: claude-haiku-5-5 (Anthropic) and gpt-5.4-mini (OpenAI) - small and fast, since |
| 32 | # a TL;DR is a once-per-click job. For richer summaries (at roughly 40x the cost) use claude-opus-5-5. |
| 33 | #DBB_AI_MODEL_ANTHROPIC=claude-opus-5-5 |
| 34 | #DBB_AI_MODEL_OPENAI=gpt-5.4-mini |