Extension System Quickstart
Get started with Radium extensions in 10 minutes! This guide will walk you through creating, installing, and using your first extension.
Prerequisitesβ
- Radium CLI installed and configured
- Basic familiarity with command-line tools
Step 1: Create Your First Extensionβ
Let's create a simple extension with a custom prompt:
rad extension create my-first-extension --author "Your Name" --description "My first Radium extension"
This creates a directory structure like:
my-first-extension/
βββ radium-extension.json
βββ prompts/
βββ mcp/
βββ commands/
βββ hooks/
βββ README.md
Step 2: Add a Componentβ
Let's add a simple prompt to your extension:
# Create a prompt file
cat > my-first-extension/prompts/helper-agent.md << 'EOF'
# Helper Agent
A helpful assistant agent that provides guidance and answers questions.
## Capabilities
- Answer questions
- Provide guidance
- Help with tasks
EOF
Step 3: Update the Manifestβ
Edit my-first-extension/radium-extension.json to include your prompt:
{
"name": "my-first-extension",
"version": "1.0.0",
"description": "My first Radium extension",
"author": "Your Name",
"components": {
"prompts": ["prompts/*.md"]
},
"dependencies": []
}
Step 4: Install Your Extensionβ
Install the extension locally:
rad extension install ./my-first-extension
You should see:
β Extension 'my-first-extension' installed successfully
Version: 1.0.0
Description: My first Radium extension
Step 5: Verify Installationβ
List your installed extensions:
rad extension list
You should see your extension in the list!
Step 6: Use Your Extensionβ
Your prompt is now available for use in Radium. The extension system automatically discovers and loads components from installed extensions.
Next Stepsβ
- Add more components (MCP servers, commands, hooks)
- Share your extension with others
- Browse the marketplace for community extensions
- Learn about signing extensions
- Read the full documentation
Troubleshootingβ
Extension Not Foundβ
If your extension isn't appearing:
- Check it's installed:
rad extension list - Verify the manifest file exists:
radium-extension.json - Ensure the extension name matches exactly (case-sensitive)
Component Not Loadingβ
If components aren't being discovered:
- Check component directories exist
- Verify glob patterns in manifest match file paths
- Ensure file formats are correct (
.mdfor prompts,.jsonfor MCP,.tomlfor commands)
For more help, see the troubleshooting guide.