grayform b33

← guides

AI at home · 30 minutes

AI at home: a coding assistant on your PC, used from your phone

Run an AI assistant on your own computer, reach it over SSH and Tailscale, and keep control of what it does.

This guide is vendor neutral. Any AI tool that runs in a terminal can work this way.

The setup: the assistant runs on your computer, and your phone is a window into it. Your files stay on your machine.

The shape of it

phone (SSH app) --Tailscale--> your PC (assistant runs here)

No ports opened on your router. Only your own devices can connect.

Set it up

  1. Set up an SSH server on the PC, keys only.
  2. Install Tailscale on the PC and the phone.
  3. Install your chosen assistant on the PC and sign in or add its key there.
  4. From the phone, connect: ssh you@your-pc
  5. Go to your project folder and start the assistant there:
cd ~/projects/my-project

Then run the tool's start command from its own docs.

Keep the session alive

Phones lose signal. A terminal multiplexer keeps your session running when the connection drops.

tmux new -s work

Reconnect later and pick up where you left off:

tmux attach -t work

On Windows, install it inside WSL, or use the tool's own session features if it has them.

Keep secrets out of chats

An AI chat is not a safe place for secrets.

  1. Never paste passwords, API keys or private keys into a prompt.
  2. Keep keys in environment variables or a secrets file the assistant is told to leave alone.
  3. Add secrets files to .gitignore.
  4. If a secret did land in a chat, treat it as leaked and replace it.
  5. Check what the assistant can read. Start it in the project folder, not your whole user folder.

Review what agents change

An agent can edit many files fast. Read before you accept.

  1. Work in a git repository, so every change can be undone.
  2. Commit before a big task, so you have a clean point to return to.
  3. After the task, look at what changed:
git status
git diff
  1. Run the tests yourself. Do not rely on the assistant saying it passed.
  2. Be careful with commands it wants to run. Deleting, installing and network calls deserve a second look.
  3. Approve changes one at a time at first. Loosen it only as trust grows.

Local models: an option

You can run a model entirely on your own hardware, using tools such as LM Studio or Ollama.

  • Pro: your text never leaves the computer, and there is no per-use fee.
  • Con: quality depends on your hardware. Larger models need a lot of memory, and may be slower or weaker than hosted ones.
  • Good fit: private notes, drafts, and simple edits.

Keep a local model's server reachable only from your own machine, or from Tailscale. Do not expose it to the internet.

What to expect

Assistants make mistakes. They can sound sure while being wrong. Treat the output like a draft from a fast junior colleague: useful, and in need of review.

If it does not work

  • Cannot connect from the phone: follow the SSH and Tailscale guides, starting with Tailscale showing connected.
  • Session dies when the signal drops: use tmux as shown above.
  • Assistant cannot see your files: you started it in the wrong folder.
  • It is slow on mobile data: SSH is light, so check the PC's own load and connection.
  • Local model will not load: it is probably too big for your memory. Try a smaller one.