Teeny Tiny

Teeny Tiny,docs.

How to use teenytiny.

Contents

Quick start

teenytiny runs your code in the cloud. This quick start makes your first VM: a Linux computer in the cloud that starts in seconds. You use it from your browser or from your terminal.

In the browser

  1. Create an account with your email. You type a code from the email: you need no password.

  2. On the dashboard, push New VM, then Create.

  3. On the VM page, push Terminal. Type a command, for example python3 --version.

The files stay when you close the tab. Stop VM and Delete VM are on the same page.

In the terminal

  1. Install the CLI on macOS or Linux. It needs no sudo. Your browser opens: sign in, then push Approve.

    curl -fsSL https://teenytiny.computer/install.sh | sh
  2. Make a VM.

    teenytiny vm create --name api --image sandbox --size mini
  3. Open a shell in it. exit closes the shell, and the VM continues to run.

    teenytiny vm shell api
  4. Delete it when you do not need it.

    teenytiny vm delete api

tt is the short name of teenytiny: tt vm list is the same as teenytiny vm list.

For agents and scripts

Make an API token on the account page. Then each command runs with no browser and no questions.

export TEENYTINY_TOKEN=tt_...
teenytiny vm create --name job --image sandbox --size mini --json
teenytiny vm exec job --shell -- 'python3 --version > /root/out.txt'
teenytiny vm cp job:/root/out.txt ./out.txt
teenytiny vm delete job -y
  • --json prints the result of a command as JSON. An error has a code and a message: see Scripts.
  • vm exec exits with the status of the program that it runs.
  • These docs as Markdown: https://teenytiny.computer/docs.md. One section: https://teenytiny.computer/docs/vms.md.

Next steps

ToRead
Choose the software and the size of a VMVMs
Run a command or copy a fileTerminal and desktop
Use ssh, scp or your editorSSH and editors
Show a web app at an HTTPS addressWeb addresses
Give a program an API keySecrets
Work with other peopleWorkspaces
Run more at the same timePlans and billing
Find a commandCLI reference

VMs

A VM is a Linux computer in the cloud. It starts in seconds, and its files stay until you delete it.

teenytiny vm create --name api --image sandbox --size mini
teenytiny vm list
teenytiny vm get api                      # state, size and addresses
teenytiny vm delete api                   # cannot be undone

In the browser, push New VM on the dashboard. You choose three things: a name, an image and a size. All flags: vm create.

Images

The image sets the software that a new VM starts with.

ImageUse it forSoftwareSize if you give none
baseA clean startDebian Linux with aptmicro
sandboxCode, builds and agentsPython, Node.js, Bun, Rust, compilers, Gitsmall (mini in New VM)
desktopWork that needs a screen or a browserThe sandbox tools, an XFCE desktop, Chromiumsmall, the minimum
hermesAn agent that is always onHermes Agent by Nous Researchsmall, the minimum

With no --image, the CLI uses base. To start from your own disk or from a container image, see Checkpoints and images.

Sizes

SizeCPUsMemoryDisk
micro0.25256 MB5 GB
mini11 GB10 GB
small44 GB20 GB
medium88 GB40 GB
large1616 GB80 GB
  • A custom size is cpu:memory_gb:disk_gb, for example --size 2:4:30.
  • vm update api --size medium changes the size. It applies at the next start. The disk cannot get smaller.
  • Your plan sets how much your running VMs can use at the same time.

Start and stop

With no --timeout, a VM stops after 1 hour. A hermes VM stops only when you stop it.

teenytiny vm stop api
teenytiny vm start api
teenytiny vm update api --timeout 2d      # stops 2 days from now; also: never
  • A stop keeps the files and ends all programs. To start a program at each start, make it a service.
  • /scratch is a second disk of 10 GB for temporary files. It is empty after each start and does not count in your plan.
  • The state lost shows a hardware failure. Start the VM: it continues from its last checkpoint.

Ephemeral VMs

An ephemeral VM keeps no files after it stops. Use it for short jobs, such as tests, builds or one-off tasks of an agent.

teenytiny vm create --name job --image sandbox --size mini --ephemeral
VMEphemeral VM
Files after a stopStayGone
A startContinues from the last stopBegins from the image again
UsesThe CPU, memory and disk of your planEphemeral hours
StopsAt its timeout, or when you stop itAlso at any time, by teenytiny
  • Copy your results out before it stops. You get no warning.
  • If no capacity is free, the start fails. Try again later.

Terminal and desktop

Each VM has a terminal. The desktop image adds a Linux desktop, and the hermes image adds the Hermes dashboard. Each opens in a browser tab from the VM page.

teenytiny vm open api                     # the VM page in the browser
teenytiny vm shell api                    # a shell in your terminal
teenytiny vm open desk desktop            # the desktop of a desktop VM
teenytiny vm open agent hermes            # the dashboard of a hermes VM
ImageYou aresudo
base, sandboxrootNot necessary
desktop, hermesuserWorks, with no password

Only a signed-in member or owner of the workspace can open them. vm shell and vm exec do not start a stopped VM: run teenytiny vm start api first.

Run one command

teenytiny vm exec api -- ls -la /etc
teenytiny vm exec api --shell -- 'npm test | tee test.log'
teenytiny vm exec api --cwd /root/app --timeout 10m -- npm test
  • The command after -- runs directly, with no shell.
  • For pipes, && or $VARIABLES of the VM, add --shell and give the command as one argument in quotes.
  • The exit status is the status of the program. It is 124 when --timeout ends, and 125 for an error of teenytiny.

All flags: vm exec.

Copy files

teenytiny vm cp ./config.json api:/root/app/config.json
teenytiny vm cp api:/var/log/app.log ./app.log
teenytiny vm cp api:/var/log/app.log -    # - is the output
teenytiny vm file list api /root/app
teenytiny vm file delete api /root/app/config.json

A path in the VM starts with /. vm cp copies one file. For a directory, use scp -r or rsync: see SSH and editors.

Hermes

Hermes is an always-on AI agent by Nous Research. A Hermes VM runs Hermes and its dashboard. Hermes keeps its setup in the VM, in ~/.hermes.

Set up

  1. Create a VM with the Hermes kind.

  2. On the VM page, connect a model. Sign in with ChatGPT, Nous Portal or Grok, or paste an API key of OpenRouter, Anthropic, OpenAI, Google AI Studio, xAI or DeepSeek.

  3. Choose a model.

  4. Click Open chat.

Telegram

Connect Telegram to talk to Hermes from your phone. This step is optional.

  • Connect: scan the QR code with your phone, or open the link in Telegram. Then follow the steps in Telegram. A Nous Research service makes the bot for you.
  • Use a bot token: make a bot with @BotFather and get your user id from @userinfobot. Then paste both on the VM page.

Only your Telegram account can talk to the bot.

Claude plans

A sign-in with a Claude Pro or Max plan works only in the terminal:

teenytiny vm shell agent
hermes auth add anthropic

To use the Anthropic API, paste an API key on the VM page.

Good to know

  • When you delete the VM, its setup is gone.
  • A checkpoint has the keys of Hermes. A VM from that checkpoint uses the same Telegram bot: stop the first VM before you start the second.
  • While the VM is stopped, Telegram messages get no answer.
  • teenytiny vm open agent hermes opens the dashboard. It has all the other settings.

SSH and editors

Each VM has an SSH server, for ssh, scp, rsync and editors. There are three ways to connect.

WayUse it forSet up one time
teenytiny vm ssh apiA shell from a computer with the CLINothing
ssh api.teenytiny.devEditors, scp and rsyncteenytiny ssh-config --install
ssh api@ssh.teenytiny.devA computer with no CLIteenytiny ssh-key add
teenytiny vm ssh api
teenytiny vm ssh api -L 8080:localhost:8080    # arguments go to ssh

The first two ways need no SSH key in your account. SSH does not start a stopped VM: run teenytiny vm start api first.

SSH hosts

teenytiny ssh-config --install            # adds an Include line to ~/.ssh/config
ssh api.teenytiny.dev
scp ./app.tar.gz api.teenytiny.dev:/root/
rsync -a ./app/ api.teenytiny.dev:/root/app/

Each VM is then the host <vm>.teenytiny.dev. In VS Code, use Remote-SSH: Connect to Host… and type api.teenytiny.dev.

SSH with no CLI

teenytiny ssh-key add                     # ~/.ssh/id_ed25519.pub, else id_ecdsa.pub
ssh api@ssh.teenytiny.dev

Add the key one time, with the CLI or on the account page. Then any computer with that key connects with only ssh.

teenytiny ssh-key add ~/.ssh/work.pub --name work
teenytiny ssh-key list                    # also shows the host key of the SSH server
teenytiny ssh-key remove work             # its open connections end
  • Keys: ssh-ed25519 and ecdsa-sha2-nistp256 (also 384 and 521). RSA keys do not work.
  • Shells, commands, sftp and local forwards (-L) work. Agent forwarding, X11 and remote forwards (-R) do not.

Web addresses

A web address is an HTTPS address for one port of a VM. Start a web server on port 3000, add the port, and the app has a link. The VM page lists the addresses in the Services card.

teenytiny vm update web --add-port app=3000    # https://app-<id>.teenytiny.dev
teenytiny vm open web app                      # opens the address in the browser
teenytiny vm get web                           # shows the addresses
teenytiny vm update web --remove-port 3000

vm create takes --port, one time for each port. A change applies to the next request.

Ports

PortResult
3000https://3000-<id>.teenytiny.dev
app=3000https://app-<id>.teenytiny.dev. A label has 1 to 24 small letters and digits, a letter first.
app=3000:publicAnyone can open the address, with no sign-in
app=5173:localThe program gets the host 127.0.0.1:<port>. For servers that accept only localhost, such as Vite.
  • The port with the label web, else the first port, is also at https://<id>.teenytiny.dev.
  • A port is private unless it has :public: only a signed-in member or owner of the workspace can open it.
  • A private port accepts a WebSocket or a POST only from a page at its own address. If a different site calls the port, make it public.
  • --add-port with a number that the VM has replaces that port. Use it to make a port public or private.

Forward a port

For a port that needs no address, such as a database, bring it to your computer.

teenytiny vm forward db 5432              # port 5432 on 127.0.0.1:5432
teenytiny vm forward web 8080:3000        # port 3000 on 127.0.0.1:8080

The forward stops when you push Ctrl-C.

Services

A service is a program that starts at each start of the VM, and starts again after an exit. List the services in /etc/teenytiny/services.toml, then stop and start the VM.

version = 1

[service.web]
run = "cd /root/app && npm start"
ready.port = 3000

While the program is not ready, a private address shows a startup page with the log of the service. A public address answers 503.

Secrets

A secret is a named value, such as an API key, that a VM gets at each start.

teenytiny vm create --name api --secret OPENAI_API_KEY          # value from your shell
teenytiny vm update api --secret OPENAI_API_KEY=sk-new          # replaces the value
teenytiny vm update api --remove-secret OPENAI_API_KEY
  • A secret is an environment variable of each command and shell in the VM.
  • With no =value, the value comes from the variable of the same name in your shell. Thus it stays out of your shell history.
  • teenytiny keeps the values encrypted. No checkpoint keeps them, and vm get shows only the names.

Guarded secrets

A guarded secret never goes into the VM, so a program in the VM cannot copy it out. Use it when code that you do not fully control, such as an agent, calls an API.

SecretGuarded secret
The VM getsThe valueA placeholder (teenytiny_secret_…)
The value goes toAny program in the VMOnly requests to the hosts that you list
Flag--secret NAME=value--guarded NAME=value@host1,host2
teenytiny vm create --name ci --guarded GITHUB_TOKEN@api.github.com,uploads.github.com
teenytiny vm exec ci --shell -- 'curl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/user'

teenytiny puts the real value into each request to a listed host.

  • The value goes into the address and the headers of a request, not the body.
  • Only HTTPS works. A program that pins certificates fails.
  • A request with the placeholder to a different host is blocked. The listed hosts are always open in the network policy.

Network

The network policy of a VM sets which hosts on the internet it can connect to. The default is open.

teenytiny vm create --name ci --network @github,@npm,api.example.com
teenytiny vm update ci --network closed   # applies at once
teenytiny vm update ci --network open
PolicyPermits
openAll public addresses
closedNo connections
A list, with commasOnly its entries

List entries

EntryPermits
api.github.comThat host, on ports 80 and 443
*.npmjs.orgAll hosts below npmjs.org, but not npmjs.org itself
db.example.com:5432That host, on that port
10.1.0.0/16A range of addresses, also for UDP
@pip, @npm, @aptThe package hosts of Python, of npm, Yarn and Node.js, and of Debian, Ubuntu and Alpine
@githubGitHub, also Git over SSH on github.com:22

Limits

  • A blocked HTTP request gets 403. A blocked HTTPS connection closes.
  • A VM cannot connect to 169.254.169.254, to the hosts of teenytiny, or to other VMs. It can reach the API and the web addresses of VMs.
  • The hosts of guarded secrets are always permitted.
  • Only IPv4 works. With a list, UDP is blocked, except DNS and the address ranges of the list.

Checkpoints and images

A checkpoint is a saved copy of the disk of a VM: make one before a change that you might want to undo. An image is a checkpoint with a name, which you start new VMs from.

teenytiny vm checkpoint create api        # the VM continues to run
teenytiny vm checkpoint list api          # with no VM: all of the workspace
teenytiny vm restore api 3f9a1c0e8b7d4a2f9e6c5b4a3d2e1f0a
teenytiny vm checkpoint delete 3f9a1c0e8b7d4a2f9e6c5b4a3d2e1f0a
  • A restore loses the changes after that checkpoint. The old disk becomes an auto checkpoint first, then the VM starts.
  • Each stop also saves a checkpoint. It does not count in your plan.
  • After a delete, the data stays for 24 hours.

Images

teenytiny vm image create api --name api-base
teenytiny vm create --name api-2 --image api-base
teenytiny vm image list
teenytiny vm image delete api-base
  • A new VM gets the disk and the ports of the image, not the secrets. With no flags, it has size micro and stops after 1 hour.
  • An image name has 1 to 63 small letters, digits and -, a letter first.

Import a container image

teenytiny vm image import docker.io/library/redis:7 --name redis
teenytiny vm image import --dockerfile Dockerfile --name web
teenytiny vm create --name cache --image redis
  • The command of the container image becomes a service.
  • An import sends only the text of the Dockerfile, so COPY and ADD of local files do not work.

A custom VM starts from your own code: a folder of a git repository with a Dockerfile, or a container image.

In the browser, push New VM, choose Custom and paste the link. In the terminal:

teenytiny vm create --image https://github.com/dockersamples/example-voting-app/tree/main/vote
teenytiny vm create --image docker.io/library/nginx:alpine
PasteExample
A folder on GitHub, GitLab or a different git hosthttps://github.com/dockersamples/example-voting-app/tree/main/vote
A repository: its top folder, on the default branchhttps://gitlab.com/group/project
An image, with its registrydocker.io/library/nginx:alpine, ghcr.io/owner/app:1.2
An image page of Docker Hubhttps://hub.docker.com/_/nginx
  • The repository or the image must be public.
  • The folder needs a Dockerfile or a Containerfile.
  • Write the registry: docker.io/library/nginx, not nginx.

The first VM from a source builds it. An image takes some seconds. A Dockerfile also runs its RUN steps. New VM shows the steps and the log. After that, a VM from the same source starts in seconds, also for other people.

A branch or a tag is read at the build. A link to a commit, or an image with a digest (@sha256:…), always gives the same VM.

Each build adds the teenytiny agent (/sbin/teenytiny-agent). The agent is PID 1: the terminal, SSH, files and logs go through it, as root. The ENTRYPOINT and CMD of the image run as the service main, with the ENV of the image, and start again after a failure. To change this, put your own /etc/teenytiny/services.toml in the image (services). systemd in the image does not start.

A link opens New VM with the source filled in. The person signs in, chooses a size and pushes Create.

https://teenytiny.computer/new?vm=github.com/owner/project/tree/main/app

For a README:

[![Start on Teeny Tiny](https://img.shields.io/badge/Start_on-Teeny_Tiny-141413)](https://teenytiny.computer/new?vm=github.com/owner/project/tree/main/app)
  • In a link, write &, +, % and ? as %26, %2B, %25 and %3F.
  • A link can also open a default image: ?vm=desktop.

VM commands

Each teenytiny vm command, with its flags. A <vm> is a VM name, an id, or the start of an id.

CommandDoesSection
vm createMakes a VM and starts itvm create
vm listLists the VMs of the workspaceVMs
vm get <vm>Shows the state, the size and the addressesVMs
vm update <vm>Changes a VMvm update
vm start <vm>…, vm stop <vm>…Starts or stops one VM or moreStart and stop
vm delete <vm>…Deletes one VM or more. -y does not ask first.VMs
vm shell <vm>Opens a shell in your terminalTerminal and desktop
vm exec <vm> -- <command>Runs one commandvm exec
vm cp <from> <to>Copies one file to or from a VMCopy files
vm file list <vm> <path>, vm file delete <vm> <path>Lists a directory, or deletes a fileCopy files
vm open <vm>Opens the VM page in the browser. With a port or a label: that web address.Terminal and desktop
vm ssh <vm>Connects with the ssh programSSH and editors
vm forward <vm> <port>Brings a port to your computerForward a port
vm checkpoint create <vm>, vm checkpoint list, vm checkpoint delete <id>Saves, lists or deletes checkpointsCheckpoints and images
vm restore <vm> <checkpoint>Puts the disk of a checkpoint into the VM. -y does not ask first.Checkpoints and images
vm image create <vm> --name <name>, vm image list, vm image delete <name>Makes, lists or deletes imagesImages
vm image importMakes an image from a container image or a DockerfileImport a container image

vm create

teenytiny vm create --name api --image sandbox --size mini --timeout 3h --port web=3000
FlagDoes
--name <name>1 to 40 small letters, digits and -, a letter first. Unique in its workspace.
--image <image>An image name or a checkpoint id. Default: base.
--size <size>A size name or cpu:memory_gb:disk_gb. Default: from the image.
--timeout <time>Stops the VM after 30m, 3h, 2d or never. Default: from the image.
--network <policy>open, closed, or a list of hosts. See Network.
--port <port>A port, such as web=3000. Use it again for more ports.
--secret NAME=valueA secret. With only NAME: the value of your shell.
--guarded NAME=value@hostsA guarded secret, with commas between hosts
--env NAME=valueAn environment variable. It cannot change later.
--region <country>Starts the VM only in this country, for example de or in. Default: the nearest region.
--ephemeralMakes an ephemeral VM

vm update

teenytiny vm update api --size medium --timeout never
FlagDoes
--name <name>A new name. "" removes the name.
--size <size>A new size. It applies at the next start. The disk cannot get smaller.
--timeout <time>A new timeout, from now: 30m, 3h, 2d or never
--network <policy>A new network policy. It applies at once.
--add-port <port>Adds a port, or replaces the port with the same number
--remove-port <number>Removes the port with this number
--secret NAME=valueAdds or replaces a secret
--guarded NAME=value@hostsAdds or replaces a guarded secret
--remove-secret <name>Removes the secret with this name

The image, the region and the --env variables of a VM cannot change.

vm exec

teenytiny vm exec api --cwd /root/app --env CI=1 --timeout 10m -- npm test
FlagDoes
--shellGives the command, as one argument, to a login shell (sh -lc)
--cwd <dir>Runs the command in this directory
--env NAME=valueAdds an environment variable. Use it again for more.
--timeout <time>Stops the command after this time, for example 30s. The exit status is then 124.
-t, --ttyRuns the command in a terminal, for programs such as top

The exit status is the status of the program, or 125 for an error of teenytiny.

Workspaces

A workspace holds what you make on teenytiny, the people who can use it, and one plan. Each account starts with a default workspace. Make a second one for a team or a project.

teenytiny workspace create "Acme Labs"    # you are its owner
teenytiny workspace invite sam@example.com --role member
teenytiny -w "Acme Labs" vm list          # one command in that workspace

The workspace page does the same in the browser.

Roles

RoleCan do
viewerSee the VMs, their state and their checkpoints
memberAlso make, change, start, stop and delete VMs; open terminals, SSH, files and private web addresses; make checkpoints and images
ownerAlso manage the members, the invitations, the name and the plan, and delete the workspace
  • An invitation link is valid for 7 days, for an account with that email.
  • A removed member loses access in a few seconds.
  • A workspace always has one owner or more. Only a workspace with no VMs and no checkpoints can be deleted.

Choose the workspace of a command

WayApplies to
-w <name or id>One command
TEENYTINY_WORKSPACEEach command of that shell or script
teenytiny workspace use <name>Each next command on this computer

With none of these, a command uses your default workspace.

Commands

ws is a short name for workspace. A member is an email or an account id.

teenytiny workspace list                  # your workspaces and your role in each
teenytiny workspace create "Acme Labs"
teenytiny workspace use "Acme Labs"       # "default": your default workspace
teenytiny workspace get                   # members, and invitations for an owner
teenytiny workspace invite sam@example.com --role viewer    # owner, member (default) or viewer
teenytiny workspace revoke-invite <id>
teenytiny workspace accept <workspace> <invite>             # the two ids from the invitation link
teenytiny workspace role sam@example.com owner
teenytiny workspace remove sam@example.com
teenytiny workspace leave
teenytiny workspace rename "Acme"
teenytiny workspace delete --yes          # only an empty workspace; --yes does not ask first

Plans and billing

A plan is a pool of CPU and memory that you split across your running VMs, for a monthly price. Each workspace has one plan. An owner chooses it on the billing page.

PlanPriceCPUsMemoryDiskCheckpointsEphemeral hours
Hobby$15 a month44 GB50 GB10320 a month
Pro$30 a month88 GB100 GB20640 a month
Scale$60 a month1616 GB200 GB401,280 a month

For example, Hobby runs 4 VMs of size mini, or 1 of size small, at the same time. Pro runs 8 mini, or 1 small and 4 mini. All sizes: Sizes. The price is for the workspace, with any number of members.

What counts

Part of the planWhat uses it
CPUs and memoryOnly the VMs that run now
DiskAll VMs, also stopped VMs
CheckpointsThe checkpoints and images that you make or import. The checkpoint of a stop does not count.
Ephemeral hoursThe time that ephemeral VMs run. They use no other part of the plan.

When the plan is full, a start fails and tells you what is in use. Stop a VM, use a smaller size, or change the plan.

Ephemeral hours

Ephemeral hours are the time that your ephemeral VMs can run each month. 1 ephemeral hour runs a mini VM for 1 hour. A larger size uses the hours faster.

Size1 ephemeral hour runs it for
micro4 hours
mini1 hour
small15 minutes
medium7.5 minutes
large3.75 minutes
  • A custom size uses its number of CPUs or its GB of memory, the larger number: 2:8:20 uses 8 hours for each hour.
  • New hours come with each paid month. Unused hours do not go into the next month.
  • When the hours are used, the ephemeral VMs stop until the next paid month. Other VMs continue to run.

Payment and end

Manage payment on the billing page changes the card, shows the invoices and cancels the plan.

  • After a cancel, the plan stays until the end of the paid month.
  • If a payment fails, the VMs run for 72 more hours. Update the card in that time.
  • When the plan ends, the VMs stop. Their files stay for 30 days. To use them again, choose a plan, then start the VMs.

Sign-in and tokens

An account is one person with one email address. A token lets a program act for that account.

Sign in

  1. Type your email on the sign-in page.

  2. Type the code of 6 digits from the email, or open its link. The code is valid for 10 minutes.

On the account page, you can add a passkey or a password (10 characters or more) for the next sign-in.

teenytiny login                           # opens the browser: push Approve
teenytiny whoami                          # the account, workspace and token
teenytiny logout                          # revokes the token of this computer

Tokens

An API token is for a script, CI, an agent or the HTTP API. Push New token on the account page. The page shows the token one time only.

TEENYTINY_TOKEN=tt_... teenytiny whoami
teenytiny login --token-stdin < token.txt
curl -H "Authorization: Bearer $TEENYTINY_TOKEN" https://api.teenytiny.computer/v1/vms
teenytiny token list
teenytiny token revoke 7kq2m4xz3pt3hw5a   # stops at once
CredentialYou get it fromEnds
Browser sessionA sign-inAfter 30 days
CLI tokenteenytiny loginAfter 90 days with no use
API tokenNew tokenAfter 7, 30 or 90 days, 1 year, or never: you choose
SSH keySSH with no CLIWhen you remove it

Sign out everywhere on the account page ends each browser session and each CLI token, but not API tokens and SSH keys.

CLI reference

The CLI is the program teenytiny, for macOS and Linux. tt is its short name: tt whoami is the same as teenytiny whoami.

curl -fsSL https://teenytiny.computer/install.sh | sh    # needs no sudo; then opens the sign-in
teenytiny --help                          # each command has --help
teenytiny upgrade                         # installs the newest version

Commands

PartCommandsSection
Accountlogin, logout, whoamiSign-in and tokens
Tokenstoken list, token revokeTokens
Workspacesworkspace, with the short name wsWorkspace commands
VMsvmVM commands
SSHssh-config, ssh-key add, ssh-key list, ssh-key removeSSH and editors
The CLIupgradeThis section

Options of each command

OptionDoes
--helpShows the arguments and the flags of the command
--jsonPrints the result as JSON
-w <name or id>, --workspaceRuns the command in this workspace. See Choose the workspace of a command.
--versionShows the version of the CLI

Scripts

A script needs a token and no browser: set TEENYTINY_TOKEN. See Tokens.

VariableIs
TEENYTINY_TOKENThe token to use, in place of teenytiny login
TEENYTINY_WORKSPACEThe workspace, the same as -w <name or id>
TEENYTINY_HOMEThe directory of the CLI files, in place of ~/.config/teenytiny
TEENYTINY_INSTALL_DIRWhere install.sh puts the program, in place of ~/.local/bin
  • With --json, a list is an object, for example {"vms": [...]}.
  • With --json, an error prints {"error": {"code": "...", "message": "..."}}, with the error codes of the HTTP API.
  • The exit status is 0, or 1 for an error.
  • vm exec, vm shell and vm ssh give the status of the program in the VM, or 125 for an error of teenytiny.

Troubleshooting

Most messages tell you the next step. These messages need more.

Install and sign-in

MessageDo this
command not foundAdd export PATH="$HOME/.local/bin:$PATH" to your shell profile, then open a new terminal
this computer has no token, the token does not existRun teenytiny login. In CI, set TEENYTINY_TOKEN: see Tokens.
the sign-in took more than 10 minutesRun teenytiny login again and approve it within 10 minutes

Workspace and plan

MessageDo this
This workspace has no planAn owner opens the billing page
your role in the workspace … is viewerAsk an owner for the role member. See Roles.
no VM has the name apiRun teenytiny vm list. For a VM of a different workspace, add -w <workspace>.

VMs

MessageDo this
no capacity for this VM at the moment, the region de is fullUse a smaller size or a different --region, or try again later
the VM api is stoppedRun teenytiny vm start api. SSH and commands do not start a VM.
the ephemeral VM … stoppedRun teenytiny vm start: the VM begins from the image again. See Ephemeral VMs.
the timeout endedGive vm exec a longer --timeout, for example 10m
the key SHA256:… is not registeredRun teenytiny ssh-key add. See SSH with no CLI.
Waiting for response page: Port 3000 is not ready yet.Start the program, or make it a service