Charles

Why run your trading bot on a server you own

A self-hosted trading bot keeps your keys and history on your server, with no subscription and code you can read, and you look after the server.

Charles runs on a small server you own. Your keys, settings and history stay on it, and there's no subscription. Here's what that means in practice, and what it costs you in effort.

What "a server you own" means here

A server is a computer that stays on. For Charles, that's a small Ubuntu machine you rent from a provider like DigitalOcean, for about $6 a month. It's your account and your bill.

Charles runs there. By default it trades paper money linked to real market data, through a free Alpaca paper account. Alpaca's paper account takes the orders, and you watch what happens on a web dashboard from your phone.

We don't host it, and we don't run it for you. Once it's installed, it's yours.

Your keys stay on your server

A trading bot needs keys to talk to the broker. With Charles, they sit in a file on your server.

You add or change them with one command:

charles-keys

The same goes for your settings and your history: every order the bot placed, every change you made to the plan. All of it stays on the machine you control. If you delete the server, it's gone with it, and that's your call to make.

No subscription

Charles is free. There's no plan to upgrade to and no monthly fee to us. The only regular cost of running Charles is the server itself, which you pay to the provider directly.

That means you're not paying every month to keep using something you've already set up.

Code you can read

All of Charles's code is public on GitHub. It's plain Python. You can read the rules the bot follows, run them yourself and change them.

That matters with a trading bot. If you want to know why it bought something, you don't have to trust a description. The plan's rules are in the code, and you can check them line by line.

You don't have to be a programmer to change things, either. Because it's plain Python on your own server, Claude Code can read the code, make a change you describe in plain words and run the tests. You read what it changed before you keep it.

Claude Code is optional, and it isn't free. It needs a Claude subscription or Anthropic API credit, on your own bill. It also needs a bigger server than Charles does, with 4 GB of memory, so the server costs more than the small one. The setup guide explains how to move up.

Updates that ask first

Charles doesn't update by itself. When a new version comes out, the dashboard shows what changed. If a change affects how it trades, it asks you first. You install a new version when you're ready:

charles-update

If you don't like it, Restore takes you back to the earlier version:

charles-restore

You can read about each release on the releases page before you decide.

Logging in without passwords

Charles's dashboard login has no passwords. Instead, the server prints a one-time link:

charles-login

You open the link on your phone or computer, and you're in. A new install also gets HTTPS.

The trade-off: you look after a small server

Owning it means it's your job. That's the real cost, and it's worth being plain about.

  1. You set it up. One command installs Charles on a fresh Ubuntu server. The setup guide takes about 30 minutes, mostly waiting for installs. If you've never used a server before, it's the longest part.
  2. You pay for it. About $6 a month at DigitalOcean, billed to you.
  3. You keep it on. If the server is off, Charles is off. Nobody else is watching it for you.
  4. You decide on updates. Nothing updates by itself, which also means nothing gets updated unless you do it.
  5. You fix what breaks. There's no support desk running your copy. The code is public and you can change it, but that cuts both ways.

Most days Charles places no orders, so there's not much to watch. Pause on the dashboard holds all orders whenever you want.

Set it upRead the code on GitHub