On this page
Work and personal accounts do not belong in the same Claude Code login. Switching by logging out and in is slow, and easy to get wrong. anywh handles it with profiles: each account is isolated, and you switch between them from the app.
What a profile is
A profile is one isolated agent login served by the relay. Use one for work and one for personal, or one per client.
It is not a new OS user. It is a different $HOME that the relay spawns the agent under, so each profile gets its own agent configuration directory and its own credentials, while sharing one machine and one relay installation.
Add a second account
- Log the new account in, once, out of band. On the relay machine, run the login with a separate home directory. There is no in-app login: the relay never holds a credential of its own, it inherits one that already exists on disk.
- Create the profile. In the app, open the profile switcher, choose add profile, give it a label and that same path, and press Check to confirm the login was picked up. Or use the command line, which is what that dialog calls.
- Use it from your other devices. Profiles sync: any other device pointed at the same relay machine picks the new one up on its next sync. There is nothing to import or copy.
HOME=/path/to/new/home claude login
~/.local/share/anywh/infra/systemd/add-profile.sh work \
--relay-host <address> --home /path/to/new/homeEach profile runs on its own
Each profile runs as its own systemd instance, anywh-relay@<profile>, on its own port. One profile restarting or crashing leaves the others alone.
Each profile also has its own color in the app, so tabs from your work and personal accounts are easy to tell apart.
Where everything lives
Everything stays on the relay machine, and nothing is sent to a third party when you create or sync a profile.
| Path | What |
|---|---|
~/.config/anywh/profiles.json | The registry: ids, labels and colors |
~/.config/anywh/env/<profile>.env | Per-profile settings, like RELAY_HOST and RELAY_PORT |
~/.config/anywh/themes/*.json | Custom themes, shared by the whole host |
Usage per account
The status bar shows the plan usage of each profile’s login. When two profiles are logged in to the same account, the app shows it once. The usage limits post explains where those numbers come from.
The full reference is in the profiles docs. If you are starting from scratch, begin with self-hosting, or read how to reach your machine from your phone.