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

Metadata

Release files for lamia-cloud 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lamia-cloud 0.3.5
File Size Uploaded
lamia_cloud-0.3.5.tar.gz 91.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lamia-cloud 0.3.5
File Interpreter ABI Platform
lamia_cloud-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 162.6 kB

Release files / lamia_cloud-0.3.5.tar.gz

Download URL lamia_cloud-0.3.5.tar.gz
Size 91.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16fb04d83303696f672ebe3c4b1f668021bca70cbdab556ed89e5a4f65999dc8
BLAKE2b-256 checksum
How to use checksums
21fb14ced6ce743c1ea4ecfa93c8ba1beaeae7b6fbfef8f1071f6a4732574873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release files / lamia_cloud-0.3.5-py3-none-any.whl

Download URL lamia_cloud-0.3.5-py3-none-any.whl
Size 70.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cb6a8149f98504e4710f7a98561311fc63312505ef8151d18cae2c6a6a41924
BLAKE2b-256 checksum
How to use checksums
8b7d3fb5e9625b1696869ac3e6dc8bd9c1e21f8fe7d0f5abec19e45fb8ef6669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page