Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111# 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=
# --- for the keyword-index crawler (index/crawl.py) -------------------------
# The crawler's own search account, as a scoped app password. The production# product bans app passwords for its users on purpose; this is an experiment —# one account, read-only search, revocable in Bluesky -> App Passwords. Put# the *generated* password here, not your main account password.# INDEX_BLUESKY_HANDLE=# INDEX_BLUESKY_APP_PASSWORD=
# The exploration loop's tuning. The window is applied on each post's own# createdAt (the public search API has no reliable date range).# INDEX_PASS_RATE=0.5# INDEX_POSTS=10# INDEX_WINDOW_DAYS=30
# --- for the general feed builder (feeds/) -----------------------------------
# Same crawler account as the index (INDEX_BLUESKY_HANDLE / APP_PASSWORD):# it searches the graph. Thresholds mirror the index's, namespaced under FEEDS_.# FEEDS_PASS_RATE=0.2# FEEDS_POSTS=10# FEEDS_WINDOW_DAYS=30
# --- 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/<topic>, 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=