Skip to main content

Prerequisites

  • Python 3.10+
  • Docker
  • kubectl configured with a running Kubernetes cluster (EKS, GKE, AKS, or local)
  • Hexr runtime deployed (self-hosted quickstart)

1. Install the SDK


2. Write Your Agent

Create my_agent.py:

3. Build


4. Push


5. Deploy


What Just Happened?

1

AST Analysis

hexr build analyzed your Python code and discovered the agent name, framework, cloud resources, and A2A configuration — all without running your code.
2

Identity Assignment

Your agent received a SPIFFE identity: spiffe://demo.hexr.dev/agent/my-team/my-first-agent/main. This identity is used for all authentication.
3

Credential Injection

When your agent calls hexr_tool("aws_s3", ...), the platform automatically exchanges the SPIFFE identity for short-lived AWS credentials. No AWS keys in your code.
4

Observability

Every hexr_llm() and hexr_tool() call is automatically traced with OpenTelemetry. Check the dashboard for traces, metrics, and costs.

Next Steps

Multi-Framework Agents

Use CrewAI, LangChain, or AutoGen with Hexr.

Agent-to-Agent

Enable communication between agents.

SDK Reference

Full API documentation.

Architecture

How the platform works.