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
- Add a
cloudsection to your project'sconfig.yaml:
cloud:
provider: gcp
project_id: my-gcp-project
location: us-central1 # optional, default: us-central1
- 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.
- Schedule your script with the
--remoteflag:
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
lamia <script>.lm --remotepackages your project and runs it as a Cloud Run Job (one-shot)lamia schedule add <script>.lm --remotedeploys the same cloud job with Cloud Scheduler- Cloud Scheduler triggers the job on your cron schedule
- Logs are available in Cloud Logging
lamia schedule listfetches 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lamia_cloud-0.3.0.tar.gz.
File metadata
- Download URL: lamia_cloud-0.3.0.tar.gz
- Upload date:
- Size: 82.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4680701c7d762e95055c3dc8fbdef445cbc082dfec82b4e6e3c590aabe39053
|
|
| MD5 |
9a5ed1283b58ae2e8056cf410fe9ad9f
|
|
| BLAKE2b-256 |
807d83df2147e764fb42487ce0416fcf4316e025bf78a7a88b349bb179a31f19
|
Provenance
The following attestation bundles were made for lamia_cloud-0.3.0.tar.gz:
Publisher:
publish.yml on lamia-lang/lamia-cloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lamia_cloud-0.3.0.tar.gz -
Subject digest:
b4680701c7d762e95055c3dc8fbdef445cbc082dfec82b4e6e3c590aabe39053 - Sigstore transparency entry: 2516307176
- Sigstore integration time:
-
Permalink:
lamia-lang/lamia-cloud@c3b7a3977188bf2432538bc0aa4836c9b40faffc -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/lamia-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c3b7a3977188bf2432538bc0aa4836c9b40faffc -
Trigger Event:
push
-
Statement type:
File details
Details for the file lamia_cloud-0.3.0-py3-none-any.whl.
File metadata
- Download URL: lamia_cloud-0.3.0-py3-none-any.whl
- Upload date:
- Size: 65.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da1faf740992837b0c2112279469ed563a85e109d4e011564337194337153e51
|
|
| MD5 |
31491ecf3c60fdf61471ac622d4b3ae7
|
|
| BLAKE2b-256 |
3e13081e3b40278264372beb121ab4436d41f57609c7029f01444789dad4d8e0
|
Provenance
The following attestation bundles were made for lamia_cloud-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on lamia-lang/lamia-cloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lamia_cloud-0.3.0-py3-none-any.whl -
Subject digest:
da1faf740992837b0c2112279469ed563a85e109d4e011564337194337153e51 - Sigstore transparency entry: 2516307220
- Sigstore integration time:
-
Permalink:
lamia-lang/lamia-cloud@c3b7a3977188bf2432538bc0aa4836c9b40faffc -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/lamia-lang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c3b7a3977188bf2432538bc0aa4836c9b40faffc -
Trigger Event:
push
-
Statement type: