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
Create an account with your email. You type a code from the email: you need no password.
On the dashboard, push New VM, then Create.
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
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 | shMake a VM.
teenytiny vm create --name api --image sandbox --size miniOpen a shell in it.
exitcloses the shell, and the VM continues to run.teenytiny vm shell apiDelete 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--jsonprints the result of a command as JSON. An error has a code and a message: see Scripts.vm execexits 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
| To | Read |
|---|---|
| Choose the software and the size of a VM | VMs |
| Run a command or copy a file | Terminal and desktop |
Use ssh, scp or your editor | SSH and editors |
| Show a web app at an HTTPS address | Web addresses |
| Give a program an API key | Secrets |
| Work with other people | Workspaces |
| Run more at the same time | Plans and billing |
| Find a command | CLI 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 undoneIn 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.
| Image | Use it for | Software | Size if you give none |
|---|---|---|---|
base | A clean start | Debian Linux with apt | micro |
sandbox | Code, builds and agents | Python, Node.js, Bun, Rust, compilers, Git | small (mini in New VM) |
desktop | Work that needs a screen or a browser | The sandbox tools, an XFCE desktop, Chromium | small, the minimum |
hermes | An agent that is always on | Hermes Agent by Nous Research | small, 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
| Size | CPUs | Memory | Disk |
|---|---|---|---|
micro | 0.25 | 256 MB | 5 GB |
mini | 1 | 1 GB | 10 GB |
small | 4 | 4 GB | 20 GB |
medium | 8 | 8 GB | 40 GB |
large | 16 | 16 GB | 80 GB |
- A custom size is
cpu:memory_gb:disk_gb, for example--size 2:4:30. vm update api --size mediumchanges 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.
/scratchis a second disk of 10 GB for temporary files. It is empty after each start and does not count in your plan.- The state
lostshows 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| VM | Ephemeral VM | |
|---|---|---|
| Files after a stop | Stay | Gone |
| A start | Continues from the last stop | Begins from the image again |
| Uses | The CPU, memory and disk of your plan | Ephemeral hours |
| Stops | At its timeout, or when you stop it | Also 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| Image | You are | sudo |
|---|---|---|
base, sandbox | root | Not necessary |
desktop, hermes | user | Works, 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$VARIABLESof the VM, add--shelland give the command as one argument in quotes. - The exit status is the status of the program. It is 124 when
--timeoutends, 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.jsonA 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
Create a VM with the Hermes kind.
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.
Choose a model.
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 anthropicTo 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 hermesopens 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.
| Way | Use it for | Set up one time |
|---|---|---|
teenytiny vm ssh api | A shell from a computer with the CLI | Nothing |
ssh api.teenytiny.dev | Editors, scp and rsync | teenytiny ssh-config --install |
ssh api@ssh.teenytiny.dev | A computer with no CLI | teenytiny ssh-key add |
teenytiny vm ssh api
teenytiny vm ssh api -L 8080:localhost:8080 # arguments go to sshThe 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.devAdd 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-ed25519andecdsa-sha2-nistp256(also 384 and 521). RSA keys do not work. - Shells, commands,
sftpand 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 3000vm create takes --port, one time for each port. A change applies to the next request.
Ports
| Port | Result |
|---|---|
3000 | https://3000-<id>.teenytiny.dev |
app=3000 | https://app-<id>.teenytiny.dev. A label has 1 to 24 small letters and digits, a letter first. |
app=3000:public | Anyone can open the address, with no sign-in |
app=5173:local | The 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 athttps://<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
POSTonly from a page at its own address. If a different site calls the port, make it public. --add-portwith 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:8080The 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 = 3000While 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 getshows 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.
| Secret | Guarded secret | |
|---|---|---|
| The VM gets | The value | A placeholder (teenytiny_secret_…) |
| The value goes to | Any program in the VM | Only 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| Policy | Permits |
|---|---|
open | All public addresses |
closed | No connections |
| A list, with commas | Only its entries |
List entries
| Entry | Permits |
|---|---|
api.github.com | That host, on ports 80 and 443 |
*.npmjs.org | All hosts below npmjs.org, but not npmjs.org itself |
db.example.com:5432 | That host, on that port |
10.1.0.0/16 | A range of addresses, also for UDP |
@pip, @npm, @apt | The package hosts of Python, of npm, Yarn and Node.js, and of Debian, Ubuntu and Alpine |
@github | GitHub, 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
autocheckpoint 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
microand 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
COPYandADDof local files do not work.
Custom VMs
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:alpineWhat to paste
| Paste | Example |
|---|---|
| A folder on GitHub, GitLab or a different git host | https://github.com/dockersamples/example-voting-app/tree/main/vote |
| A repository: its top folder, on the default branch | https://gitlab.com/group/project |
| An image, with its registry | docker.io/library/nginx:alpine, ghcr.io/owner/app:1.2 |
| An image page of Docker Hub | https://hub.docker.com/_/nginx |
- The repository or the image must be public.
- The folder needs a
Dockerfileor aContainerfile. - Write the registry:
docker.io/library/nginx, notnginx.
The first start
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.
What the build adds
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.
Share a link
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/appFor a README:
[](https://teenytiny.computer/new?vm=github.com/owner/project/tree/main/app)- In a link, write
&,+,%and?as%26,%2B,%25and%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.
| Command | Does | Section |
|---|---|---|
vm create | Makes a VM and starts it | vm create |
vm list | Lists the VMs of the workspace | VMs |
vm get <vm> | Shows the state, the size and the addresses | VMs |
vm update <vm> | Changes a VM | vm update |
vm start <vm>…, vm stop <vm>… | Starts or stops one VM or more | Start and stop |
vm delete <vm>… | Deletes one VM or more. -y does not ask first. | VMs |
vm shell <vm> | Opens a shell in your terminal | Terminal and desktop |
vm exec <vm> -- <command> | Runs one command | vm exec |
vm cp <from> <to> | Copies one file to or from a VM | Copy files |
vm file list <vm> <path>, vm file delete <vm> <path> | Lists a directory, or deletes a file | Copy 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 program | SSH and editors |
vm forward <vm> <port> | Brings a port to your computer | Forward a port |
vm checkpoint create <vm>, vm checkpoint list, vm checkpoint delete <id> | Saves, lists or deletes checkpoints | Checkpoints 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 images | Images |
vm image import | Makes an image from a container image or a Dockerfile | Import a container image |
vm create
teenytiny vm create --name api --image sandbox --size mini --timeout 3h --port web=3000| Flag | Does |
|---|---|
--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=value | A secret. With only NAME: the value of your shell. |
--guarded NAME=value@hosts | A guarded secret, with commas between hosts |
--env NAME=value | An environment variable. It cannot change later. |
--region <country> | Starts the VM only in this country, for example de or in. Default: the nearest region. |
--ephemeral | Makes an ephemeral VM |
vm update
teenytiny vm update api --size medium --timeout never| Flag | Does |
|---|---|
--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=value | Adds or replaces a secret |
--guarded NAME=value@hosts | Adds 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| Flag | Does |
|---|---|
--shell | Gives the command, as one argument, to a login shell (sh -lc) |
--cwd <dir> | Runs the command in this directory |
--env NAME=value | Adds 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, --tty | Runs 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 workspaceThe workspace page does the same in the browser.
Roles
| Role | Can do |
|---|---|
viewer | See the VMs, their state and their checkpoints |
member | Also make, change, start, stop and delete VMs; open terminals, SSH, files and private web addresses; make checkpoints and images |
owner | Also 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
| Way | Applies to |
|---|---|
-w <name or id> | One command |
TEENYTINY_WORKSPACE | Each 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 firstPlans 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.
| Plan | Price | CPUs | Memory | Disk | Checkpoints | Ephemeral hours |
|---|---|---|---|---|---|---|
| Hobby | $15 a month | 4 | 4 GB | 50 GB | 10 | 320 a month |
| Pro | $30 a month | 8 | 8 GB | 100 GB | 20 | 640 a month |
| Scale | $60 a month | 16 | 16 GB | 200 GB | 40 | 1,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 plan | What uses it |
|---|---|
| CPUs and memory | Only the VMs that run now |
| Disk | All VMs, also stopped VMs |
| Checkpoints | The checkpoints and images that you make or import. The checkpoint of a stop does not count. |
| Ephemeral hours | The 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.
| Size | 1 ephemeral hour runs it for |
|---|---|
micro | 4 hours |
mini | 1 hour |
small | 15 minutes |
medium | 7.5 minutes |
large | 3.75 minutes |
- A custom size uses its number of CPUs or its GB of memory, the larger number:
2:8:20uses 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
Type your email on the sign-in page.
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 computerTokens
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| Credential | You get it from | Ends |
|---|---|---|
| Browser session | A sign-in | After 30 days |
| CLI token | teenytiny login | After 90 days with no use |
| API token | New token | After 7, 30 or 90 days, 1 year, or never: you choose |
| SSH key | SSH with no CLI | When 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 versionCommands
| Part | Commands | Section |
|---|---|---|
| Account | login, logout, whoami | Sign-in and tokens |
| Tokens | token list, token revoke | Tokens |
| Workspaces | workspace, with the short name ws | Workspace commands |
| VMs | vm | VM commands |
| SSH | ssh-config, ssh-key add, ssh-key list, ssh-key remove | SSH and editors |
| The CLI | upgrade | This section |
Options of each command
| Option | Does |
|---|---|
--help | Shows the arguments and the flags of the command |
--json | Prints the result as JSON |
-w <name or id>, --workspace | Runs the command in this workspace. See Choose the workspace of a command. |
--version | Shows the version of the CLI |
Scripts
A script needs a token and no browser: set TEENYTINY_TOKEN. See Tokens.
| Variable | Is |
|---|---|
TEENYTINY_TOKEN | The token to use, in place of teenytiny login |
TEENYTINY_WORKSPACE | The workspace, the same as -w <name or id> |
TEENYTINY_HOME | The directory of the CLI files, in place of ~/.config/teenytiny |
TEENYTINY_INSTALL_DIR | Where 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 shellandvm sshgive 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
| Message | Do this |
|---|---|
command not found | Add export PATH="$HOME/.local/bin:$PATH" to your shell profile, then open a new terminal |
this computer has no token, the token does not exist | Run teenytiny login. In CI, set TEENYTINY_TOKEN: see Tokens. |
the sign-in took more than 10 minutes | Run teenytiny login again and approve it within 10 minutes |
Workspace and plan
| Message | Do this |
|---|---|
This workspace has no plan | An owner opens the billing page |
your role in the workspace … is viewer | Ask an owner for the role member. See Roles. |
no VM has the name api | Run teenytiny vm list. For a VM of a different workspace, add -w <workspace>. |
VMs
| Message | Do this |
|---|---|
no capacity for this VM at the moment, the region de is full | Use a smaller size or a different --region, or try again later |
the VM api is stopped | Run teenytiny vm start api. SSH and commands do not start a VM. |
the ephemeral VM … stopped | Run teenytiny vm start: the VM begins from the image again. See Ephemeral VMs. |
the timeout ended | Give vm exec a longer --timeout, for example 10m |
the key SHA256:… is not registered | Run 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 |