# Copy to .env and fill in. .env is gitignored and must stay that way — it is # the only file here that holds a secret. # # There are no Bluesky app passwords in this list, deliberately. Users log in # with atproto OAuth and their tokens live in the sidecar's store, so this # server never holds a credential belonging to a person. # --- required --------------------------------------------------------------- # The model provider. Every turn anyone takes bills to this one key, which is # what the per-user rate limits below are for. GREENPT_API_KEY= # --- generated for you ------------------------------------------------------ # opencode's own server password: the second lock, behind the proxy. start.sh # generates one and appends it here on first run, so leave it unset the first # time. The username is literally `opencode`. # OPENCODE_SERVER_PASSWORD= # --- required once it is reachable from outside ----------------------------- # The public origin, e.g. https://aligned.click. Setting it does three things: # it starts the cloudflared tunnel, it makes the session cookie Secure, and it # is the origin the OAuth client metadata is published under. Leave it empty to # run on localhost only. PUBLIC_URL= # --- optional --------------------------------------------------------------- # Where published conversations are read. A separate host on purpose, so a # post that links back stays readable when this machine is off. # READER_URL=https://read.aligned.click # An ntfy topic URL — https://ntfy.sh/, or your own ntfy. A waitlist # nobody is told about is a file that fills up quietly. The notification is sent # ntfy's way: the message is the request body, the title and tags are headers. # Anything else that accepts a plain-text POST will also work; Discord will not, # since it wants its own JSON shape. # WAITLIST_WEBHOOK= # # An ntfy access token (`tk_…`), if the topic is reserved to your account. Worth # setting rather than relying on an unguessable name: on ntfy.sh a bare topic is # public to anyone who knows it, and this one carries the handle of everybody # asking to join an invite-only site. A guessed topic is a list of who wants in. # WAITLIST_TOKEN= # Turns on opencode's built-in `websearch`, which is otherwise available only # to the `opencode` provider — and ours is GreenPT, so without this the tool is # not registered and the model reports having no such tool. It needs no key: # opencode talks to Exa's hosted MCP unauthenticated (`EXA_API_KEY` is only for # bringing your own account). # # Read by opencode, not by anything Python here. It reaches it because # aligned-opencode.service loads this file as its EnvironmentFile. # # Only `builder` may call it — see the agent block in agent/opencode.json. # Not because search is dangerous, but because search results are text from # strangers arriving in a session that may run commands, and because a Bluesky # reading agent that quietly browses the web is not the thing anyone was # offered. Widening it to everyone means adding `websearch` to the top-level # `tools` block, which is the list the proxy hands out. # OPENCODE_ENABLE_EXA=1 # Per-user limits. Not for abuse — for the loop: an agent that gets stuck is # the normal way one key becomes expensive. # RATE_PER_MINUTE=120 # PROMPTS_PER_DAY=300 # Ports. Only the proxy is ever exposed; the rest bind 127.0.0.1. # PROXY_PORT=8778 # OPENCODE_PORT=4096 # OAUTH_PORT=4098 # --- only to republish a lexicon schema ------------------------------------- # The account the `com.atproto.lexicon.schema` records belong to. A schema is # published by the authority the NSID names, not by whoever is chatting, so # this is set in a shell for that one job and never for the server. # ADMIN_DID= # --- for running a tool by hand, never for the server ----------------------- # Which account a directly-invoked tool acts as. The server does not set this # and must not: a tool learns whose call it is from the session that caused it, # and a server-wide default would make every user's call look like one person's. # ACTING_DID=