Command
Description
Sends a query to your default agent hosted on the sb0 platform and streams the response.Usage
Query your deployed agent:Expected Output
Quoting
Always use quotes around your question:Streaming Response
The command streams the response in real-time as the agent generates it, similar to ChatGPT or Claude.ai.Requirements
Before usingsb0 query:
- Login - Authenticate with
sb0 login - Deploy agent - Push at least one agent with
sb0 push - Set default - The platform uses your most recently deployed agent by default
Multi-line Queries
For longer queries, use heredoc syntax:Selecting a Specific Agent
If you have multiple deployed agents, you can specify which one to query:The
--agent flag is coming soon. Currently, queries are sent to your default (most recently deployed) agent.Common Issues
Not Authenticated
No Agents Deployed
Network Errors
- Check your internet connection
- Verify the platform is accessible
- Try again in a few moments
Development Workflow
Usesb0 query to verify your deployed agent works correctly:
Comparison with Local Testing
| Feature | sb0 run --prompt | sb0 query |
|---|---|---|
| Location | Local Python environment | Platform (cloud) |
| Speed | Instant | Network latency |
| Changes | Immediate | After sb0 push |
| Purpose | Development/testing | Production verification |