Core libraries
Elyra is built from a small set of foundational packages. You can use the CLI on its own, or pull these libraries into your own projects to build agents, terminal apps, or AI-powered web UIs.
All packages are published to npm under the @elyracode scope and ship with TypeScript types.
coding-agent
@elyracode/coding-agent
The Elyra CLI — interactive TUI, session management, slash commands, built-in tools (read, bash, edit, write), and the SDK that wires everything together. This is what you install globally to get the elyra command.
npm install -g @elyracode/coding-agent
See Quickstart, Using Elyra, and the SDK for programmatic usage.
agent-core
@elyracode/agent-core
A general-purpose agent runtime with transport abstraction, state management, and attachment support. Used internally by the coding agent, but exposed as a standalone library so you can build your own agents on the same foundation.
Key features:
- Pluggable transports (stdio, HTTP, in-process)
- Immutable state with event-driven updates
- Attachment handling (files, images, blobs)
- Extension and tool registry
npm install @elyracode/agent-core
ai
@elyracode/ai
A unified LLM API with automatic model discovery and provider configuration. Supports 30+ providers (OpenAI, Anthropic, Gemini, Cohere, Groq, xAI, OpenRouter, and more) with a single consistent interface for chat, streaming, tools, structured output, and embeddings.
npm install @elyracode/ai
See Providers and Custom Providers.
tui
@elyracode/tui
A terminal UI library with differential rendering for efficient, flicker-free text-based applications. Powers the interactive mode of the coding agent.
Key features:
- Component model with props, state, and effects
- Differential rendering (only redraws changed regions)
- Built-in primitives: Box, Text, Input, List, Spinner
- Keyboard input handling and focus management
npm install @elyracode/tui
See TUI Components.
web-ui
@elyracode/web-ui
Reusable web UI components for AI chat interfaces, powered by @elyracode/ai. Drop-in components for chat threads, message bubbles, streaming output, tool calls, and attachments — designed to be styled with your own theme.
npm install @elyracode/web-ui