Skip to content

Plugins

SQLsaber supports optional plugins that extend its capabilities. Plugins are installed alongside SQLsaber using uv tool install --with.

You can even write your own plugins and make them available to SQLsaber to use.

The visualization plugin renders charts directly in your terminal from query results.

Terminal window
uv tool install --with sqlsaber-viz sqlsaber

Or if you already have SQLsaber installed:

Terminal window
uv tool install --with sqlsaber-viz --force sqlsaber

After running a query, ask for a visualization in natural language:

> Show me the top 10 customers by revenue
| customer_name | total_revenue |
|---------------|---------------|
| Acme Corp | 50000 |
| Beta Inc | 45000 |
| ... | ... |
> Plot that as a bar chart
┌────────────────────────────────────────────────────┐
│ ███████████████████████████████████████████ 50000 │
│ ██████████████████████████████████████ 45000 │
│ ... │
└────────────────────────────────────────────────────┘
Chart TypeBest For
BarComparing categories, rankings, distributions
LineTime series, trends over time
ScatterCorrelations between two numeric variables
HistogramDistribution of a single numeric variable
BoxplotStatistical distribution across categories

You don’t need to specify the chart type explicitly. Just describe what you want to see and SQLsaber will pick the appropriate chart type based on your data.


The sandbox plugin lets SQLsaber run Python code in a secure remote sandbox. This is useful for calculations, stats, or data transformations that are easier in Python than SQL.

Terminal window
uv tool install --with sqlsaber-sandbox sqlsaber

You need to configure at least one sandbox provider:

ProviderEnvironment Variable
DaytonaDAYTONA_API_KEY
E2BE2B_API_KEY
SpritesSPRITES_TOKEN
HopxHOPX_API_KEY
ModalMODAL_TOKEN_ID or ~/.modal.toml
CloudflareCLOUDFLARE_SANDBOX_BASE_URL + CLOUDFLARE_API_TOKEN

When at least one provider is configured, the agent can use a run_python tool to execute Python code in that sandbox. If no provider is configured, the tool is not available.


You can install multiple plugins at once:

Terminal window
uv tool install --with sqlsaber-viz,sqlsaber-sandbox sqlsaber

You can register custom tools directly in a Django app using AppConfig.ready:

myapp/apps.py
from django.apps import AppConfig
from sqlsaber.tools.registry import tool_registry
from myapp.tools import MyCustomTool
class MyAppConfig(AppConfig):
name = "myapp"
def ready(self):
tool_registry.register(MyCustomTool)