Skip to main content

lamia-cloud

Cloud execution backend for Lamia. Run .lm scripts once with --remote, deploy scheduled cloud jobs, and prepare for upcoming cloud trigger support. Currently supports GCP.

For common agent use cases, you usually do not need to build custom cloud-agent infrastructure from scratch before shipping with Lamia.

Installation

pip install "lamia-lang[cloud]"

Prerequisites

  • GCP project with billing enabled
  • Application Default Credentials: gcloud auth application-default login

All required GCP APIs (including Service Usage) are enabled automatically on first deploy.

Quick Start

  1. Add a cloud section to your project's config.yaml:
cloud:
  provider: gcp
  project_id: my-gcp-project
  location: us-central1  # optional, default: us-central1
  1. Run a script once in the cloud with --remote:
lamia my_script.lm --remote

Use this one-shot run to validate cloud execution, permissions, and logs before adding a schedule.

  1. Schedule your script with the --remote flag:
lamia schedule add my_script.lm --every day --remote

The --remote flag tells lamia to deploy and run the script in the cloud instead of locally.

Managing Schedules

lamia schedule list              # shows all jobs (local + cloud) with live status
lamia schedule add X --remote    # deploy and schedule a new cloud job
lamia schedule remove <id>       # tears down cloud resources and removes the job

How It Works

  1. lamia <script>.lm --remote packages your project and runs it as a Cloud Run Job (one-shot)
  2. lamia schedule add <script>.lm --remote deploys the same cloud job with Cloud Scheduler
  3. Cloud Scheduler triggers the job on your cron schedule
  4. Logs are available in Cloud Logging
  5. lamia schedule list fetches live execution status from the cloud

LLM on Cloud — Vertex AI

Scripts that use LLM calls run through Vertex AI on cloud. This gives you:

  • No API keys — authentication via IAM, no keys to store, rotate, or leak
  • Budget control — Vertex AI quotas and billing alerts
  • Secure by default — no API key transport or storage, traffic stays within GCP

Supported Models

Provider Cloud routing
Anthropic (Claude) Runs natively on Vertex AI — same models, same quality
Google (Gemini) Runs natively on Vertex AI
OpenAI (GPT, o-series) Automatically mapped to Gemini by tier (strong/medium/light) with runtime selection of the best available current Gemini model

Anthropic and Google models run as-is. OpenAI models are mapped because they're not available on Vertex AI — tier classification is stable while the selected Gemini model is discovered dynamically at runtime.

Configuration Reference

Field Required Default Description
cloud.provider Yes Cloud provider (currently gcp)
cloud.project_id Yes Your GCP project ID
cloud.location No us-central1 Region for Cloud Run deployment

No environment variables are required.

Troubleshooting

  • If Vertex AI access is not enabled yet, lamia-cloud logs a project-specific URL and attempts to open it automatically in your browser: https://console.cloud.google.com/vertex-ai?project=<your-project-id>
  • After accepting terms, re-run the schedule/install command once.

CI Authentication

Repository connection and CI authentication are managed by lamia cloud connect. For the security architecture and design decisions, see src/gcp/README.md.

Development

git clone https://github.com/lamia-lang/lamia-cloud.git
cd lamia-cloud
pip install -e ".[dev]"
pytest

Releasing

git tag v0.1.0
git push origin v0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lamia_cloud-0.3.2.tar.gz (84.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lamia_cloud-0.3.2-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file lamia_cloud-0.3.2.tar.gz.

File metadata

  • Download URL: lamia_cloud-0.3.2.tar.gz
  • Upload date:
  • Size: 84.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lamia_cloud-0.3.2.tar.gz
Algorithm Hash digest
SHA256 fc452b3e46fb0ebc1e2ff64f31813fe61d21ab71da4a2c1161d4388a59d3797a
MD5 2d433578203b17eff6c82428684522b3
BLAKE2b-256 87dd79c58eb10c6d95c9a17f2e2c880dde4ee630624f74604f65587917091042

See more details on using hashes here.

Provenance

The following attestation bundles were made for lamia_cloud-0.3.2.tar.gz:

Publisher: publish.yml on lamia-lang/lamia-cloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lamia_cloud-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: lamia_cloud-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lamia_cloud-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e869bd938b41367aa09f865df4636c75f693f81552a9d0debde4074f91b769d4
MD5 3576be841fb120c8c3bc7430e5a640d1
BLAKE2b-256 bd59077be0ad7c06d51adf3849808699afd17ccd7167b451b9aa28d0a87ded6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lamia_cloud-0.3.2-py3-none-any.whl:

Publisher: publish.yml on lamia-lang/lamia-cloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page