Browse tools / Development

Legion

Legion is an open source Elixir runtime for building AI agents that live inside your application. Agents can act on your app's data and functions by writing code, with sandboxed execution and a monitoring dashboard.

Visit website ↗

Outbound links may earn a commission when an approved affiliate destination is available. Read disclosure.

Capabilities

  • runs agent-written Lua or Elixir code in a sandbox with timeout, memory and CPU limits
  • tools are plain Elixir modules the agent can call
  • agents run as BEAM processes that can be supervised
  • scopes agent actions to the signed-in user
  • stores conversations in your Postgres database
  • rate limiting and telemetry events
  • legion_web LiveView dashboard showing conversations and agent code

Best for

  • Elixir developers who want to embed an AI agent that can take actions inside their own application.

Limitations

  • Requires an Elixir application
  • Lua sandbox cannot reach the host BEAM except through registered tools

Platforms

  • API

Integrations

  • Postgres
  • Claude
  • Cursor
  • MCP

Independent evidence

Evidence review is pending.

Reviewed alternatives

No reviewed alternatives yet.

Explore other tools

Compare your selection