forge commands the agent uses to switch Alpha’s services on. For when the machine sleeps, wakes or resets, see Sleep, wake and reset. To type commands into it yourself, open the Shell.
What’s installed on every machine
A new machine starts from Alpha’s base image. A setup starts from the same image with your repositories and dependencies already in place.
The agent works as an ordinary Linux account named
agent, with sudo and no password. So sudo apt-get install and global npm installs work, and whatever it installs stays on the machine through sleep and wake. A reset, which an admin does, throws it away and starts a fresh machine, from the session’s setup if it has one. See Reset the session’s machine.
Where do my files live?
Your project is/workspace. It’s the folder the agent starts in, the root of the file tree, and the home folder in the Shell.
Alpha keeps its own machinery in
/forge and /run/forge. Neither the agent nor the Shell can see inside them. In the Shell, /etc/forge looks empty too, even under sudo, so Alpha’s identity files and your secrets stay out of the terminal’s view while their values still reach your environment.
Which environment variables are set?
Nothing is set speculatively. A session without a database has noDATABASE_URL, and an app without sign-in has no sign-in variables. Each value appears the moment its service comes on.
The values are layered in a fixed order, and the last one wins. Your secrets come last, so a secret named
DATABASE_URL or GITHUB_TOKEN overrides the built-in value. Between secrets, a session secret beats a global one, and either beats the token from a GitHub connection. Names starting with FORGE_ are reserved and can’t be set as secrets, so the built-in sign-in and tools variables can’t be overridden by accident.
Every command the agent runs, every server it starts and every new Shell read these variables as they start. A change reaches the agent’s next command without a restart. A Shell that was already open keeps what it had, so click Restart shell to pick up a new secret or a database you switched on since it opened.
A published app doesn’t use these copies. It gets its own production database, the same sign-in client and your chosen settings when you publish. See Production database and sign-in.
Run servers the Preview can reach
The Preview shows any server in the machine that listens on a port and serves a page at/. Two rules decide whether yours shows up.
forge serve start waits until something in its own process tree listens on the port, and exits with 0 only when the server is up and reachable from the Preview. If it fails, it says why: the server exited (with its last log lines), it bound 127.0.0.1, another process holds the port, or it ignored the port it was given. The agent treats that exit code as the verdict, so it never tells you a server is running because the start command returned.
Which commands does the agent use?
Theforge command is the agent’s handle on Alpha. It switches services on, publishes, reads production and asks you for things through cards in the transcript. You never type these yourself: you ask in plain words, and the agent picks the command.
Every
forge command refuses to run in the Shell, even under sudo. It prints forge: the services commands (db up, auth up, deploy, setup, skill, deck) run from the agent — ask for them in the chat. Ask the agent instead, or use the workspace’s + menu for Database, Sign-in and Publish.Find logs and work within the limits
These are the places to look when something in the machine misbehaves, and the few things it can’t do.If the agent can’t publish, or
FORGE_TOOLS_URL is missing from the environment, that feature isn’t turned on for your Alpha. Ask your administrator.Next steps
The Shell
Type into the same machine yourself, as the agent’s account with
sudo.Secrets
Add the keys that land last in the environment and win over every built-in value.
Sleep, wake and reset
What survives a sleep, a fork and a reset, and what a reset wipes.
Limits
Every number in one table: disk, uploads, turn length and publishing caps.

