A desktop browser with x402 built in: when a page asks for payment, it pays in stablecoins and shows the content.

9 downloads

dbbasic-browser/.env.example
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-browser.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-browser.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-browser.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 toolbar: Back and Forward are greyed out when there's nowhere to go cc08c7a 1 week, 2 days 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.
7X402_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000
8X402_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.
13X402_MERCHANT_KEY=0x0000000000000000000000000000000000000000000000000000000000000000
14X402_MERCHANT_ADDRESS=0x0000000000000000000000000000000000000000
15
16# x402 facilitator API base (Base Sepolia). Endpoints: /verify, /settle, /supported.
17X402_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