Quickstart
This walkthrough creates a tiny agent, deploys version 1, and waits for its first result.
Before you begin
Section titled “Before you begin”You need:
- Node.js 20 or newer
- access to a Magmell account
- the Magmell CLI built from the current repository package
Until the CLI is published to a package registry, build and link it locally:
cd clients/magmellnpm installnpm run buildnpm linkVerify the executable:
magmell --help1. Sign in
Section titled “1. Sign in”magmell login \ --url https://api.magmell.siloga.cloud \ --email you@example.comThe CLI prompts for your password without echoing it and stores the resulting user session in your local Magmell configuration.
2. Create a handler
Section titled “2. Create a handler”mkdir hello-agentimport siloga_agent
def handle(input: dict) -> dict: name = input.get("name", "world") siloga_agent.log("creating greeting", name=name) return {"message": f"Hello, {name}!"}Magmell supplies the siloga_agent runtime in the execution environment. You do not add it to the
deployment requirements.
3. Deploy it
Section titled “3. Deploy it”magmell deploy ./hello-agent \ --name hello-agent \ --version 1 \ --wait--wait follows the asynchronous build and exits only when the deployment is ready or its build
fails. A successful command prints the deployment ID and ready.
4. Run it
Section titled “4. Run it”magmell run hello-agent \ --input '{"name":"Ada"}' \ --waitThe CLI resolves hello-agent to its latest active version, waits for the run, and prints:
{"message":"Hello, Ada!"}5. Inspect its timeline
Section titled “5. Inspect its timeline”List recent runs to find its number:
magmell runs list --deployment hello-agentThen inspect the gateway phases and your handler log:
magmell runs events hello-agent#1You now have an immutable deployment that can serve additional runs without another build.