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 examplesleekcode-container, with these four files.
compose.yaml
Dockerfile
squid.conf
allowed-domains.txt
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:Step 3: Open the desktop
Open http://localhost:3000 in your browser. A Linux desktop appears. The port listens only on127.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:Step 5: Clone the repositories
Clone the repositories the agent works on, over HTTPS:Step 6: Sign in to your coding agent
- Claude Code
- Codex
- OpenCode
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.Step 8: Check that the lock works
In the desktop’s terminal, try a site that isn’t on your list: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
home volume and survive a stop. After a start, sign in to Sleekcode again.
See what the proxy blocked
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 toallowed-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:home volume keeps your sign-ins, repositories and settings.
Remove everything
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:
sudois gone, andno-new-privilegesstops programs from raising their rights.
- It can’t tell good from bad on an allowed host. The proxy sees host names, not paths. If
github.comis 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.
Related
Security and privacy
What Sleekcode sends to Sleekplan, and what never leaves your computer.
Install and connect
Sleekcode’s setup, step by step.
