Skip to main content
For the strongest isolation, run Sleekcode and your coding agent inside a Linux container. The container gets no direct internet access. Everything goes through a proxy that lets requests through only to the hosts on your list: Sleekplan, your AI provider and your git host. The agent can’t see your computer’s files, can’t use your computer’s logins, and can’t reach any other site.
This setup is optional, for teams that want a hard boundary around the agent. You need Docker: Docker Desktop on macOS or Windows, or Docker Engine with the Compose plugin on Linux. Plan for a few gigabytes of disk space.

How it works

The setup has three containers on a private Docker network that has no route to the internet: Programs in the desktop send their requests to the proxy. A program that ignores the proxy gets no connection at all, because the private network has no way out.

Before you start

  • Docker 28 or later. Docker Desktop, or Docker Engine with the Compose plugin. Check with docker version: the setup needs version 28 to keep the desktop away from your computer’s own services.
  • An x64 computer, server or virtual machine. Sleekcode for Linux is built for x64 only. On a Mac with Apple silicon, Docker would have to emulate x64, and the desktop doesn’t run reliably that way.
  • A git token for only the repositories the agent works on. On GitHub, create a fine-grained personal access token that has access to just those repositories, with Contents and Pull requests set to Read and write. The agent can reach anything this token can, so keep it narrow.
  • Your coding agent’s sign-in: your Claude subscription, ChatGPT plan or API key.

Step 1: Create the files

Create a folder, for example sleekcode-container, with these four files.
compose.yaml
Dockerfile
squid.conf
allowed-domains.txt
Change the agent in the Dockerfile and its hosts in allowed-domains.txt if you don’t use Claude Code. Hosts to allow lists them.

Step 2: Start the containers

In the folder, run:
The first build downloads the desktop and takes a few minutes. Later starts take seconds.

Step 3: Open the desktop

Open http://localhost:3000 in your browser. A Linux desktop appears. The port listens only on 127.0.0.1, so no other computer can open it. To open a terminal in the desktop, choose Applications → Terminal Emulator in the top bar.

Step 4: Sign in to your git host

In the desktop’s terminal, sign in to the GitHub CLI with the token you created:
Choose GitHub.com, then HTTPS, let it authenticate git with your GitHub credentials, and choose Paste an authentication token. git and the agent now use this token, and nothing else from your computer.

Step 5: Clone the repositories

Clone the repositories the agent works on, over HTTPS:
git over SSH doesn’t work in this setup: the proxy only lets HTTPS through.

Step 6: Sign in to your coding agent

Run claude in the terminal and choose how to sign in. The Claude sign-in page needs more hosts than this setup allows, so open the link the terminal shows in the browser on your own computer instead. Sign in there, then paste the code you get into the terminal, where it says Paste code here if prompted.

Step 7: Start Sleekcode and sign in

1

Start Sleekcode

In the desktop, choose Applications → Development → Sleekcode.
2

Sign in

Click Sign in with Sleekplan. The desktop’s browser opens Sleekplan. Sign in, choose the workspace and click Connect.
3

Add the repositories

In Sleekcode’s Settings, under Repositories, click Choose folder and pick the clones in repos in the home folder. Under Agents, click Check again and make sure your agent shows Signed in.
The container has no keyring, so Sleekcode shows Your system has no keyring. Sign in again after each restart. After the container restarts, open the desktop and sign in to Sleekcode again. Your settings, repositories and the agent’s sign-in stay. Install and connect explains the rest of Sleekcode’s setup.

Step 8: Check that the lock works

In the desktop’s terminal, try a site that isn’t on your list:
The proxy refuses it, and curl reports CONNECT tunnel failed, response 403. Try https://api.sleekplan.com the same way, and you get an answer.

Use it every day

Start and stop

Your sign-ins, repositories and settings live in the home volume and survive a stop. After a start, sign in to Sleekcode again.

See what the proxy blocked

A blocked request shows up with TCP_DENIED/403 and its host, for example TCP_DENIED/403 3403 CONNECT example.com:443. When the agent fails because it can’t reach something, look here first. Some blocked requests are expected. The desktop’s browser tries Google services, and Sleekplan’s sign-in page loads fonts and analytics. None of them are needed.

Allow another host

Add the host to allowed-domains.txt, then reload the proxy:
squid -k parse checks the list first, so a mistake doesn’t stop the proxy. Hosts you might add: your package registry, such as registry.npmjs.org for npm or pypi.org and files.pythonhosted.org for Python, your company’s own git server, or your AI provider’s API host.

Update Sleekcode and your agent

Sleekcode and the agent are part of the image, so you update them by rebuilding it:
The home volume keeps your sign-ins, repositories and settings.

Remove everything

This deletes the containers and the home volume, with the sign-ins and repositories inside.

Hosts to allow

Git LFS, package registries and your company’s own servers need their own entries. The proxy’s log shows the exact host.

What this protects, and what it doesn’t

This setup protects you against an agent that’s been steered, by a post or by anything else it reads:
  • It can’t reach any host that isn’t on your list, so it can’t send your code or secrets elsewhere, or fetch code from other sites. Names of other hosts don’t even resolve, so nothing leaks through DNS lookups.
  • It can’t reach services on your own computer, such as a local database: the private network has no address for your computer.
  • It can’t read the files on your computer, only what’s inside the container.
  • It can’t use your computer’s logins. The container has its own, with only the access you gave them.
  • It can’t become root in the container: sudo is gone, and no-new-privileges stops programs from raising their rights.
What it can’t do:
  • It can’t tell good from bad on an allowed host. The proxy sees host names, not paths. If github.com is allowed, the agent can reach every repository there that its token can reach. A narrow token is what limits that.
  • It doesn’t change what your AI provider receives. The agent still sends what it works on to your AI provider, under your account.
  • It doesn’t stop tools that run on your AI provider’s side, such as a web search the provider runs for the agent.
Even in the container, Allow everything lets the agent run any command on what the container holds, including your repositories and the logins inside. Auto keeps the agent’s own safety checks on.

Security and privacy

What Sleekcode sends to Sleekplan, and what never leaves your computer.

Install and connect

Sleekcode’s setup, step by step.