airavata

module
v1.0.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0

README

Apache Airavata

CI License Contributors


Overview

Apache Airavata is an all-in-one platform for executing and managing computational jobs on distributed computing resources, including local clusters, supercomputers, national grids, and academic and commercial clouds.

Airavata is also a foundational layer for building higher-level tools on top of distributed resources, such as:

  • Inference engines that serve models on whatever compute you have access to.
  • Heterogeneous training workflows that span different clusters, schedulers and hardware.
  • AI automation tools that safely integrate with your resources, acting only with the permissions of the signed-in user.
  • Unified access to multi-endpoint datasets, so data spread across many hosts appears as one browsable, shareable layout.

Airavata is built around concepts to streamline research computing works in practice:

  • Federated compute and data. Clusters, supercomputers, clouds and storage hosts are used together as one pool, without users having to deal with the access, scheduling and data-movement details of each system.
  • Focus on the domain, not the plumbing. Researchers describe what they want to run and which data it needs. Airavata handles the orchestration of compute and storage (staging data, writing and submitting batch jobs, monitoring, and retrieving results), so time goes to the science rather than to learning each resource's quirks.
  • Bring your own resources. Users register their own clusters, logins, allocations and data stores.
  • Everything has an owner and can be shared. Credentials stay private to their owner. Cluster logins, data and datasets can be shared with individuals or groups, with read or write access.
  • Automation that works with MFA. When a login needs a password, OTP or Duo push, Airavata pauses, asks you, and then continues the automated run.
  • Detected, not typed in. Partitions, node limits, GPUs and Slurm allocations are read from the cluster itself.

Key concepts

See the introduction

Ways to use Airavata

Interface Best for
Dashboard Day-to-day use in a browser: registering clusters, answering MFA prompts, launching and following runs.
HTTP API Scripts, portals and integrations. Every feature is a REST endpoint (API reference, OpenAPI spec).
Jupyter Running notebooks on the compute node of a running job, with its files and kernels, from the dashboard (docs).
Local VS Code Working from your own VS Code against the same running job, with the editor and tooling you already use.
airavata-mcp Working through an AI assistant (Claude, Copilot, Cursor and others) that can turn an sbatch script into an application, plan runs and explain failures (docs).

Jupyter and local VS Code give you one familiar interface to your work, whatever kind of compute resource it runs on and whatever the network between you and it allows. Jobs dial out to Airavata over a single outbound connection, so compute nodes need no inbound ports and nothing extra runs on the login node. Whether the job is on an HPC cluster behind a firewall or on a cloud VM, you open it the same way.

Quick start

Prerequisites: Go 1.25+, PostgreSQL 14+ (Docker Compose is the easiest way to run it locally), and optionally Node.js 20.9+ to build the dashboard.

# 1. Start PostgreSQL (host port 15432)
docker compose -f dev-tools/compose/compose.yml up -d postgres

# 2. Build the server
go build -o bin/airavata-server ./cmd/airavata-server

# 3. Build the dashboard (optional)
npm --prefix dashboard ci && npm --prefix dashboard run build

# 4. Run
./bin/airavata-server

On first start the server creates its schema and prints a root account token. Copy it, since it is how you make the first authenticated call.

curl -s localhost:9095/health
# {"status":"UP"}

Then open http://localhost:9095/dashboard/ and sign in with the token.

The defaults suit local development. For configuration options, cross-compiling and production setup, see INSTALL.md. Before a production deployment, configure CILogon and disable the root account as described in Authentication and authorization.

Repository layout

Path Contents
cmd/airavata-server The API server (a single Go binary).
cmd/airavata-mcp The Model Context Protocol server, a thin client of the REST API.
api/ HTTP API handlers, grouped by domain (application, compute, credentials, data, iam, process, sharing, audit).
internal/ Core implementation: auth, orchestration, SSH, database, permissions, configuration and more.
dashboard/ The web UI (Next.js), served by the API server under /dashboard/.
docs/ User and API documentation.
website/ The Docusaurus site that renders docs/ (airavata.apache.org).
dev-tools/ Docker Compose files and development clients.

Documentation

Development

go build ./...                       # build everything
go test ./...                        # run the tests
go vet ./...                         # static checks
gofmt -l .                           # formatting (no output means clean)
go generate ./internal/mcp/client/   # regenerate the MCP client after editing docs/openapi.yaml

CI runs formatting, generated-code, vet, build and race-enabled test checks on every pull request. Please make sure these pass locally before opening one.

Contributing

Contributions are welcome. To get started:

  1. Fork the repository and create a branch from master.
  2. Make your change, with tests where it makes sense.
  3. Run the checks listed under Development.
  4. Open a pull request describing what changed and why.

Apache Airavata is an Apache Software Foundation project, so contributors are expected to follow the ASF Code of Conduct. To report a bug or request a feature, open an issue.

License

Apache Airavata is licensed under the Apache License, Version 2.0.

Apache Airavata, Airavata, Apache, and the Apache feather logo are trademarks of The Apache Software Foundation.

Directories

Path Synopsis
api
application/controller
Package controller serves the application template and batch deployment routes.
Package controller serves the application template and batch deployment routes.
application/model
Package application holds application-template and deployment entities.
Package application holds application-template and deployment entities.
application/repository
Package repository reads and writes application templates and batch deployments.
Package repository reads and writes application templates and batch deployments.
application/service
Package service holds the application vertical's business rules: templates and the batch deployments that bind them to a cluster.
Package service holds the application vertical's business rules: templates and the batch deployments that bind them to a cluster.
audit/controller
Package controller serves /api/v1/audit-events.
Package controller serves /api/v1/audit-events.
audit/dto
Package dto holds the audit log's request and response shapes.
Package dto holds the audit log's request and response shapes.
audit/model
Package model holds the audit log's entity.
Package model holds the audit log's entity.
audit/repository
Package repository reads the audit log.
Package repository reads the audit log.
audit/service
Package service serves the audit log to administrators.
Package service serves the audit log to administrators.
compute/controller
Package controller serves the Slurm cluster, partition and cluster-config routes.
Package controller serves the Slurm cluster, partition and cluster-config routes.
compute/model
Package model holds the cluster and partition entities.
Package model holds the cluster and partition entities.
compute/repository
Package repository reads and writes Slurm clusters, their partitions, and the login configs users reach them through.
Package repository reads and writes Slurm clusters, their partitions, and the login configs users reach them through.
compute/service
Package service holds the compute vertical's business rules: the cluster catalogue, the partitions it is carved into, and the login configs users reach a cluster through.
Package service holds the compute vertical's business rules: the cluster catalogue, the partitions it is carved into, and the login configs users reach a cluster through.
credentials/controller
Package controller serves the SSH credential routes.
Package controller serves the SSH credential routes.
credentials/model
Package model holds the SSH credential entity.
Package model holds the SSH credential entity.
credentials/repository
Package repository reads and writes registered SSH credentials.
Package repository reads and writes registered SSH credentials.
credentials/service
Package service holds the credential vertical's business rules: the write-only handling that keeps a stored private key from ever being read back, and the ownership that keeps a key to the person who registered it.
Package service holds the credential vertical's business rules: the write-only handling that keeps a stored private key from ever being read back, and the ownership that keeps a key to the person who registered it.
data/controller
Package controller serves the data product and SCP data storage routes.
Package controller serves the data product and SCP data storage routes.
data/model
Package data holds the SCP data-registration entities.
Package data holds the SCP data-registration entities.
data/repository
Package repository reads and writes registered datasets, the storages they live on, and the sharing rows that open either up.
Package repository reads and writes registered datasets, the storages they live on, and the sharing rows that open either up.
data/service
Package service holds the data vertical's business rules: registered datasets, the storages they live on and the virtual datasets assembled out of them, all reached through ownership and sharing rules rather than through platform roles.
Package service holds the data vertical's business rules: registered datasets, the storages they live on and the virtual datasets assembled out of them, all reached through ownership and sharing rules rather than through platform roles.
iam/controller
Package controller serves the user, group and group membership routes.
Package controller serves the user, group and group membership routes.
iam/model
Package iam holds the identity and access-management entities.
Package iam holds the identity and access-management entities.
iam/repository
Package repository reads and writes users, roles, groups and group memberships.
Package repository reads and writes users, roles, groups and group memberships.
iam/service
Package service holds the identity vertical's business rules: user registration, group ownership and membership, and the root-account bootstrap.
Package service holds the identity vertical's business rules: user registration, group ownership and membership, and the root-account bootstrap.
process/controller
Package controller serves the process routes: the process itself, its status history and its tasks.
Package controller serves the process routes: the process itself, its status history and its tasks.
process/dto
Package dto is the wire contract of the process vertical.
Package dto is the wire contract of the process vertical.
process/model
Package model holds the process entities: a process, the batch-job specifics some processes carry, its status history and its tasks.
Package model holds the process entities: a process, the batch-job specifics some processes carry, its status history and its tasks.
process/repository
Package repository reads and writes processes, the sections they own and their status history.
Package repository reads and writes processes, the sections they own and their status history.
process/service
Package service holds the process vertical's business rules: submitting a run under the caller's own identity, and recording what happened to it.
Package service holds the process vertical's business rules: submitting a run under the caller's own identity, and recording what happened to it.
sharing/controller
Package controller serves the share sub-resource of every shareable record.
Package controller serves the share sub-resource of every shareable record.
sharing/dto
Package dto is the wire shape of a grant: one request body for every shareable record, with the subject's kind a field rather than a choice of endpoint.
Package dto is the wire shape of a grant: one request body for every shareable record, with the subject's kind a field rather than a choice of endpoint.
sharing/model
Package model holds the one table every shareable record in the platform is reached through, and the vocabulary that table is written in.
Package model holds the one table every shareable record in the platform is reached through, and the vocabulary that table is written in.
sharing/repository
Package repository reads and writes the sharing table every vertical grants through.
Package repository reads and writes the sharing table every vertical grants through.
sharing/service
Package service resolves what a caller may do with a shareable record, and manages the grants that decide it.
Package service resolves what a caller may do with a shareable record, and manages the grants that decide it.
cmd
airavata-mcp command
Command airavata-mcp is a Model Context Protocol server for Apache Airavata.
Command airavata-mcp is a Model Context Protocol server for Apache Airavata.
airavata-server command
Command airavata-server runs the Airavata API.
Command airavata-server runs the Airavata API.
Package docs embeds the API documentation so airavata-mcp can serve it as resources.
Package docs embeds the API documentation so airavata-mcp can serve it as resources.
internal
app
Package app assembles the object graph every entry point shares.
Package app assembles the object graph every entry point shares.
audit
Package audit records every change made to a persistent record.
Package audit records every change made to a persistent record.
auth
Package auth resolves bearer tokens into principals and enforces the authority checks that Spring expressed as @PreAuthorize.
Package auth resolves bearer tokens into principals and enforces the authority checks that Spring expressed as @PreAuthorize.
config
Package config loads runtime settings, carrying over the properties the Java service read from application.properties.
Package config loads runtime settings, carrying over the properties the Java service read from application.properties.
db
Package db wires the entity model to a database connection.
Package db wires the entity model to a database connection.
httpx
Package httpx holds the HTTP plumbing shared by every handler: status-carrying errors, JSON encoding, and the error response shape.
Package httpx holds the HTTP plumbing shared by every handler: status-carrying errors, JSON encoding, and the error response shape.
link
Package link holds the WebSockets Linkspan dials back to Airavata and reaches a job's servers through them.
Package link holds the WebSockets Linkspan dials back to Airavata and reaches a job's servers through them.
mcp/auth
Package auth obtains, stores and refreshes the user's own OIDC token for airavata-mcp.
Package auth obtains, stores and refreshes the user's own OIDC token for airavata-mcp.
mcp/client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.
orchestration
Package orchestration runs the workflows that carry out a process.
Package orchestration runs the workflows that carry out a process.
orchestration/execution
Package execution holds what the workflows and the tasks they run share: the context handed from one task to the next, and the lookups every task starts from.
Package execution holds what the workflows and the tasks they run share: the context handed from one task to the next, and the lookups every task starts from.
orchestration/tasks/batch
Package batch holds the tasks that act on a batch job through its cluster's scheduler: building the submission script, submitting it and cancelling it.
Package batch holds the tasks that act on a batch job through its cluster's scheduler: building the submission script, submitting it and cancelling it.
orchestration/tasks/data
Package data holds the task that stages a file between two storages, either of which may be a cluster reached over SSH.
Package data holds the task that stages a file between two storages, either of which may be a cluster reached over SSH.
orchestration/tasks/monitoring
Package monitoring follows a submitted batch job: the task that watches it, and the mailbox the scheduler reports its state changes to.
Package monitoring follows a submitted batch job: the task that watches it, and the mailbox the scheduler reports its state changes to.
orchestration/workflows
Package workflows defines the workflows a process is carried out by, each a sequence of the tasks in the tasks packages.
Package workflows defines the workflows a process is carried out by, each a sequence of the tasks in the tasks packages.
permission
Package permission defines what a caller may be allowed to do.
Package permission defines what a caller may be allowed to do.
ptr
Package ptr provides helpers for the pointer fields used throughout the entity model.
Package ptr provides helpers for the pointer fields used throughout the entity model.
role
Package role defines the granted authorities.
Package role defines the granted authorities.
server
Package server wires the verticals together into one HTTP handler.
Package server wires the verticals together into one HTTP handler.
ssh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL