Skip to main content

AI Execution Layer CLI

Project description

aiel — AI Execution Layer CLI

PyPI

aiel is the command-line interface for the AI Execution Layer: a managed execution platform for deploying, governing, and operating AI workflows in production.

The platform separates AI application development from execution infrastructure.

Instead of building:

  • orchestration runtimes
  • execution gateways
  • policy middleware
  • deployment infrastructure
  • audit pipelines
  • integration control layers

teams define workflows locally and push immutable execution snapshots into the Execution Plane.

The platform becomes responsible for:

  • runtime provisioning
  • policy enforcement
  • integration governance
  • execution routing
  • observability
  • auditability
  • execution isolation
  • versioned deployments

Why AIEL Exists

Most AI projects do not fail during prompting.

They fail when organizations try to operationalize AI systems safely across real infrastructure.

Production AI execution introduces problems that prototypes never solve:

  • uncontrolled tool access
  • inconsistent runtime environments
  • duplicated orchestration logic
  • missing audit trails
  • unsafe integrations
  • non-reproducible deployments
  • environment drift
  • ungoverned execution

The AI Execution Layer standardizes this operational layer through a governed execution plane.

Teams focus on workflow logic.

The platform handles execution infrastructure.


System Architecture

The AI Execution Layer consists of four primary components:

Component Responsibility
aiel-sdk Local development contract and execution abstractions
aiel-cli Packaging, validation, versioning, and deployment interface
aiel-runtime Remote execution adapter used inside the Execution Plane
Execution Plane Managed runtime system responsible for governed execution

Execution Model

The platform uses immutable execution snapshots.

Every deployment creates a versioned snapshot containing:

  • workflow definitions
  • execution metadata
  • dependency manifests
  • capability contracts
  • integration references
  • runtime configuration

Snapshots are validated before becoming executable.

The Execution Plane then loads the snapshot into a governed runtime environment.


Architecture Flow

┌────────────────────┐
│ Local AI Project   │
└─────────┬──────────┘
          │
          │ aiel push
          ▼
┌────────────────────┐
│ Snapshot Packaging │
└─────────┬──────────┘
          │
          ▼
┌────────────────────┐
│ Contract Validation│
└─────────┬──────────┘
          │
          ▼
┌──────────────────────────┐
│ Immutable Snapshot Store │
└─────────┬────────────────┘
          │
          ▼
┌──────────────────────────┐
│ AI Execution Plane       │
├──────────────────────────┤
│ Runtime Hydration        │
│ Policy Enforcement       │
│ Capability Registry      │
│ Integration Governance   │
│ Execution Routing        │
│ Observability Pipeline   │
│ Audit Logging            │
└─────────┬────────────────┘
          │
          ▼
┌──────────────────────────┐
│ Workflow / Tool Runtime  │
└──────────────────────────┘

Local vs Remote Responsibilities

Local Development Execution Plane
Author workflows Execute workflows
Define tools/agents Provision runtimes
Package snapshots Enforce policies
Stage local changes Route execution
Test locally Generate audit logs
Configure workspace context Govern integration access

Execution Guarantees

The platform is designed around deterministic and governed execution.

Immutable Snapshots

Every deployment is versioned and immutable.

Reproducible Runtime Environments

Execution environments are hydrated from validated runtime metadata.

Policy Enforcement

Policies are evaluated before execution occurs.

Integration Governance

External systems are exposed through scoped capabilities.

Full Traceability

Execution metadata, actions, and runtime events are auditable.

Workspace Isolation

Execution contexts remain isolated per workspace and project.

Versioned Deployments

Deployments can be inspected, versioned, and rolled back safely.


Runtime Architecture

aiel-runtime is the execution adapter used by the Execution Plane.

The runtime is responsible for:

  • loading execution snapshots
  • hydrating runtime environments
  • registering capabilities
  • resolving integrations
  • enforcing execution contracts
  • routing tool execution
  • collecting telemetry
  • returning normalized execution responses

The runtime standardizes execution behavior across:

  • agents
  • workflows
  • tools
  • routers
  • orchestration frameworks

SDK Architecture

aiel-sdk provides the local development contract for AI applications.

The SDK exposes:

  • typed execution interfaces
  • workflow decorators
  • integration abstractions
  • execution contracts
  • local validation
  • framework adapters

The SDK mirrors the production execution surface so local development remains consistent with remote runtime behavior.

Example:

from aiel import tool, agent

@tool
def search_orders(order_id: str):
    ...

@agent
def support_agent():
    ...

The SDK itself does not execute workflows in production.

Execution occurs remotely inside the Execution Plane through aiel-runtime.


CLI Responsibilities

The CLI is the deployment and operational interface into the platform.

Primary responsibilities:

  • authentication
  • workspace selection
  • snapshot packaging
  • contract validation
  • manifest synchronization
  • deployment operations
  • runtime introspection
  • execution metadata inspection

The CLI intentionally abstracts infrastructure management from application teams.


Installation

pip install aiel-cli

Requirements:

  • Python 3.10+
  • Access token for the Execution Plane

Quick Start

1. Authenticate

aiel auth login

The CLI validates credentials against the control plane and stores the active profile securely.


2. Configure Workspace Context

aiel config set workspace <workspace-slug>
aiel config set project <project-slug>

Workspace and project scope determine:

  • deployment isolation
  • integration visibility
  • policy scope
  • runtime permissions

3. Initialize a Project

aiel init

This creates local execution metadata under .aiel/.

Example:

.aiel/
├── state.json
├── index.json
├── commits/
└── .aielignore

4. Pull Remote Snapshot State

aiel pull

Downloads the active remote snapshot into the local working tree.


5. Stage and Commit Changes

aiel status
aiel add .
aiel commit -m "Add customer support workflow"

Commits are local metadata operations until pushed.


6. Deploy to the Execution Plane

aiel push

aiel push performs the following operations:

  1. Packages the current project
  2. Computes content hashes
  3. Validates execution contracts
  4. Builds snapshot metadata
  5. Uploads immutable artifacts
  6. Registers a versioned snapshot
  7. Refreshes manifest state
  8. Publishes the snapshot to the Execution Plane

The Execution Plane then becomes responsible for:

  • runtime provisioning
  • policy enforcement
  • integration access
  • execution routing
  • telemetry
  • auditability

No container orchestration configuration is required.

No custom runtime infrastructure is required.

No deployment pipeline configuration is required.


Authentication

Login

aiel auth login

Validates the token through:

GET /v1/auth/me

Status

aiel auth status

Returns non-zero when credentials are invalid or missing.

Useful for CI validation.


Profiles

aiel auth list

Supports multiple environments and profiles.


Logout

aiel auth logout --profile production

Removes locally stored credentials.


Credential Resolution

Resolution order:

  1. AIEL_TOKEN
  2. OS keyring
  3. Credentials file

Credential storage:

Platform Location
macOS/Linux ~/.config/aiel/credentials.json
Windows %APPDATA%/aiel/credentials.json

Workspace Configuration

List Current Context

aiel config list

Displays:

  • active profile
  • workspace
  • project
  • base URL

Set Workspace

aiel config set workspace payments

The CLI validates visibility against the authenticated identity.


Set Project

aiel config set project fraud_detection

Projects define deployment scope inside a workspace.


Repository Synchronization

Repository state is managed under .aiel/.

Initialize Repository

aiel init

Creates local metadata and bootstrap files.


View Status

aiel status

Displays:

  • staged changes
  • unstaged changes
  • manifest drift
  • pending commits

Stage Files

aiel add .

Stages upserts and deletions into .aiel/index.json.


Commit

aiel commit -m "Update routing policy"

Creates local commit metadata.


Pull Snapshot

aiel pull

Hydrates the local tree from the active remote snapshot.


Push Snapshot

aiel push

Publishes a new immutable snapshot into the Execution Plane.


Integration Governance

Integrations are managed as governed execution capabilities.

The platform standardizes:

  • integration registration
  • connection validation
  • capability exposure
  • policy attachment
  • scoped access

List Integrations

aiel integrations list

Validate Integration Health

aiel integrations check --provider postgres

Introspection & Operational Visibility

Active Execution Context

aiel info workspace

Displays:

  • tenant
  • workspace
  • project
  • authenticated identity

Visible Workspaces

aiel info workspaces

Visible Projects

aiel info projects

Manifest Inspection

aiel files ls

Displays:

  • current manifest tree
  • snapshot metadata
  • local execution state

Ignore Rules

.aielignore controls:

  • synchronization
  • staging
  • status calculation
  • deployment packaging

Behavior is similar to .gitignore.


Operational Model

The platform is designed around explicit operational boundaries.

Control Plane

Responsible for:

  • authentication
  • workspace management
  • snapshot registry
  • deployment metadata
  • policy configuration

Execution Plane

Responsible for:

  • runtime hydration
  • workflow execution
  • integration access
  • execution isolation
  • observability
  • telemetry
  • auditability

Testing

Install development dependencies:

pip install -e .[dev]

Run tests:

pytest --cov=aiel --cov-report=term-missing

The test suite validates:

  • CLI behavior
  • snapshot workflows
  • manifest synchronization
  • contract validation
  • execution metadata handling
  • repository state transitions

Roadmap

The platform roadmap includes:

  • execution logs
  • deployment rollback
  • runtime debugging
  • environment promotion
  • policy simulation
  • execution replay
  • approval gates
  • canary deployments
  • multi-runtime execution support

Contributing

  1. Fork the repository
  2. Create a Python 3.10+ virtual environment
  3. Install development dependencies
  4. Run tests before opening a PR
  5. Update documentation when exposing new execution behavior

Philosophy

AI systems become operationally complex when they interact with real infrastructure.

The AI Execution Layer exists to standardize:

  • execution
  • governance
  • integrations
  • runtime behavior
  • operational safety

so teams can ship production AI systems without rebuilding the same infrastructure repeatedly.

Project details


Download files

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

Source Distribution

aiel_cli-1.3.9.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

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

aiel_cli-1.3.9-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file aiel_cli-1.3.9.tar.gz.

File metadata

  • Download URL: aiel_cli-1.3.9.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiel_cli-1.3.9.tar.gz
Algorithm Hash digest
SHA256 4c5d7237fa59e9b6dca384ff9938cb23e39b0b2e0b9ac25292cabfb59230c01a
MD5 ebe8d994db421d11302c8cb2f9efd546
BLAKE2b-256 46a2b99e393cb1f5b6a166b81507b86874b47fdee6b0aadd37d18e5a15924753

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiel_cli-1.3.9.tar.gz:

Publisher: publish.yml on aldenirsrv/AI_EXECUTION_LAYER_CLI

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

File details

Details for the file aiel_cli-1.3.9-py3-none-any.whl.

File metadata

  • Download URL: aiel_cli-1.3.9-py3-none-any.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiel_cli-1.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b01637d823b89baf44b874ec0dfd05f6fa61f98e2ba7d58f0f841dcfb4c6d8ae
MD5 e05801745e7b6e96ba9219e3266c1408
BLAKE2b-256 e4e585149311ff15c7a58d35d0d860b30c6e920b4760242545892e954bfecdc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiel_cli-1.3.9-py3-none-any.whl:

Publisher: publish.yml on aldenirsrv/AI_EXECUTION_LAYER_CLI

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 Pingdom Monitoring Sentry Error logging StatusPage Status page