Skip to main content

Algenta repository intelligence and computational runtime CLI with an automatically installed native runtime.

Project description

algenta

algenta is the public Python facade and CLI for Algenta's local native runtime. The matching platform runtime is installed automatically as a required dependency. Users do not install Mojo, compile binaries, launch a daemon, or configure a side process.

For the typed HTTP-only client, use algenta-sdk instead.

Install

python3.14 -m venv .venv
source .venv/bin/activate
pip install algenta

Supported release targets:

  • macOS Apple Silicon
  • Linux x86-64
  • Python 3.14

Package resolution fails on an unsupported platform instead of installing a runtime that cannot execute.

Verify

algenta version
algenta runtime doctor
algenta simulate
algenta benchmark

benchmark reports cold startup separately from warm native executions. It does not use a Python compute fallback or print a synthetic speedup.

Runtime libraries

The installed contract contains 472 modules and 4,757 callable functions. Discover and execute them without starting another service:

algenta runtime modules
algenta runtime functions vector_kernels.dot
algenta runtime execute vector_kernels.dot dot64_f32 \
  --args-json '{"a":[1,2,6],"b":[3,2,1]}'

The same surface is available from Python:

from algenta import MojoRuntime

runtime = MojoRuntime(mode="local")

print(runtime.health())
print(runtime.list_functions("vector_kernels.dot"))

result = runtime.execute(
    "vector_kernels.dot",
    "dot64_f32",
    {"a": [1, 2, 6], "b": [3, 2, 1]},
)

if not result["success"]:
    raise RuntimeError(result["error"])

print(result["result"])       # 13.0
print(result["latency_ms"])
print(result["engine_used"])  # mojo

The runtime validates module names, function names, argument counts, scalar and list types, and public struct fields before execution.

Local data helpers

algenta import orders.csv --name orders
algenta map orders.csv
algenta query "revenue by region" orders.csv
algenta demo

These commands are local helpers. The governed hosted or self-hosted data/query surface is available through API mode.

API mode

Install the cloud extra when the same facade should call an Algenta deployment:

pip install "algenta[cloud]"
import os

from algenta import Runtime

runtime = Runtime(
    mode="self_hosted",
    api_key=os.environ["ALGENTA_API_KEY"],
    base_url="http://localhost:8000",
)

datasets = runtime.list_datasets(search="orders", compact=True)
print(datasets)

Private deployment modes require an explicit base URL and fail closed instead of silently using Algenta cloud.

Contract discovery

The facade exports the generated public query contract, so applications can discover endpoint and filter capabilities without hard-coded paths:

from algenta import PRIMARY_DATA_QUERY_CONTRACT

print(PRIMARY_DATA_QUERY_CONTRACT["api"]["contract_endpoint"])

The API publishes its OpenAPI document at /openapi.json and identifies the active query contract with x-primary-data-query-contract. The main HTTP facade methods are get_contract(), list_connectors(), connect_data(), get_dataset(), get_dataset_summary(), refresh_dataset(), delete_dataset(), query_batch(), and query_sql_report(). Runtime evidence is discoverable through get_runtime_manifest(), get_runtime_modules(), get_runtime_benchmarks(), and get_runtime_release_validation().

Runtime(mode="api") targets Algenta cloud. Runtime(mode="self_hosted") requires base_url to point at your own service and intentionally fails closed when that configuration is missing.

Unified Capability Plane

The same facade routes datasets, skills, MCP tools, and runtime libraries:

route = runtime.route_capabilities(
    {
        "objective": "Investigate the latest checkout incident",
        "kinds": ["dataset", "skill", "mcp_tool", "runtime_library"],
    }
)

capability = runtime.get_capability(
    route.selected_capability_id,
    include_instruction=True,
)
execution = runtime.execute_capability(
    {
        "capability_id": route.selected_capability_id,
        "binding_id": route.selected_binding_id,
        "input": {"objective": "Investigate the latest checkout incident"},
    }
)
providers = runtime.list_capability_providers()
skills = runtime.list_skills()
mcp_providers = runtime.list_mcp_providers()

Local runtime execution fails closed for algenta_managed capabilities. Use Runtime(mode="api") or Runtime(mode="self_hosted") for those routes. Local adapters registered with runtime.register_capability_adapter(adapter) execute only client_managed capabilities. Full route and execution examples are in examples/capability-plane/ and examples/langgraph/capability_router.py.

Authentication

algenta login stores API and license credentials only in the operating-system credential store. If no secure keyring backend is available, storage fails explicitly; set ALGENTA_API_KEY in the process environment instead.

algenta login
algenta whoami

The runtime wheel is verified against its signed manifest and platform tag before public release execution. Release mode denies unverified overrides and does not open a TCP listener.

MCP

The MCP client is a separate, thin package because it connects editors and agents to hosted or self-hosted Algenta:

pipx install algenta-mcp
algenta-mcp

Or install the optional dependency with this package:

pip install "algenta[mcp]"
algenta mcp

Its runtime tools are list_runtime_libraries and execute_runtime_library.

Links

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

algenta-1.0.4.tar.gz (302.3 kB view details)

Uploaded Source

Built Distribution

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

algenta-1.0.4-py3-none-any.whl (376.1 kB view details)

Uploaded Python 3

File details

Details for the file algenta-1.0.4.tar.gz.

File metadata

  • Download URL: algenta-1.0.4.tar.gz
  • Upload date:
  • Size: 302.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for algenta-1.0.4.tar.gz
Algorithm Hash digest
SHA256 66c63332e21d366cd40d3947d505c5d95baa36e5e13157309f201f64c2c597d1
MD5 a9aca0922ecb70209c33451c0545560c
BLAKE2b-256 c48b47c4fc9a4561b2d4d5dd8428edb0ef0f6f422ef709fabc83045478d6cc72

See more details on using hashes here.

File details

Details for the file algenta-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: algenta-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 376.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for algenta-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 292844703b57c884811ad4caf265c7df9415e5fda17285e5e3c1f795995894d6
MD5 dce1c387602c3b1e5c23b8b9e624ae49
BLAKE2b-256 02295330cdcf6c1bbc2403e3f7f1fb96d2312cc8f146c0f13b0ebba4ea50ea5e

See more details on using hashes here.

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