Automate Lambda.ai with Ansible-inspired Go CLI
curl -fsSL https://raw.githubusercontent.com/atoniolo76/gotoni/main/install.sh | bashExport your Lambda API key:
export LAMBDA_API_KEY=your_token_hereLaunch an instance with a persistent filesystem attached. If the filesystem doesn't exist, it will be created. The --wait flag ensures the command polls until the instance is ready.
gotoni launch my-project \
-t gpu_1x_a10 \
--filesystem my-data \
--waitOnce launched, instantly open the remote workspace in your preferred IDE (defaults to Cursor).
Prerequisite: Ensure you have installed the command-line tool for your IDE.
- Cursor:
Cmd+Shift+P> "Install 'cursor' command"- VS Code:
Cmd+Shift+P> "Install 'code' command"
gotoni open my-projectOr force VS Code:
gotoni open my-project --codeShare SSH access with a friend or colleague using Magic Wormhole.
Sender:
gotoni share my-project
# Generates a secure code like: 7-guitarist-revengeReceiver:
gotoni receive 7-guitarist-revenge
# Automatically configures SSH keys and host entry
ssh my-projectCreate tasks that can be executed on instances during launch. You can also start services that will run in the background with systemd, such as an inference server.
gotoni tasks add --name "install depedencies" --command "pip install vllm"
gotoni tasks add --name "run vllm" --command "vllm serve moonshotai/Kimi-K2-Thinking" --depends-on "install dependencies" --type servicegotoni launch ml-instance
-t gpu_1x_a100
-r us-west-1
--wait
--tasks "install depedencies,run vllm"gotoni launch- Launch instances (supports waiting, filesystems, and tasks)gotoni open- Open remote instance in Cursor/VS Codegotoni share- Securely share SSH accessgotoni receive- Receive SSH access and auto-configuregotoni tasks- Manage automation tasksgotoni provision- Run tasks on an existing instancegotoni list- List active instancesgotoni available- List available instance types and regionsgotoni run- Execute remote commandsgotoni delete- Terminate instancesgotoni filesystems- Manage filesystemsgotoni ssh-keys- Manage SSH keys
Configuration is automatically managed in a local SQLite database.
