An unofficial official command-line interface for interacting with Gobii prompts, agents, and tasks. Gobii is a tool for browser automation using AI that provides the ability to perform complex web tasks without an API.
This is early in development and will have bugs.
You must have a Gobii API key. You may either define an environment variable $GOBII_API_KEY
, or specify it as a command-line argument. The argument takes precedence over the environment variable.
gobii-cli
uses POSIX-compliant exit codes (0
for success, > 0
for failure), making it suitable for scripting and automation.
I highly recommend using the prompt
command combined with JSON format to pipe data to jq
or other tools.
gobii-cli [options] [command]
-a, --api-key <key>
β API key for authentication-f, --format <format>
β Output format:text
orjson
(default:text
). In JSON mode,--silent
is implied. Great for piping to tools likejq
.-v, --verbose
β Enable verbose logging (avoid with--format json
, as it breaks JSON structure)-s, --silent
β Suppress all output except final result. (--verbose
overrides)-V, --version
β Output the CLI version-h, --help
β Display help for command
Submit a prompt to the Gobii API and wait for a result.
gobii-cli prompt "Generate daily summary"
Options:
-
-j, --schema <schema>
β Output schema for the prompt (JSON Schema string). Used to define the promptβs output structure. NOTE: Use with --format=json. Example:--schema '{"type": "object", "properties": {"name": {"type": "string"}, "age": {"type": "number"}}}'
-
-f, --schema-file <file>
β Path to a file containing a JSON Schema used to define output. NOTE: Use with --format=json. Example:--schema-file ./schema.json
Note: If both
--schema
and--schema-file
are provided,--schema
takes precedence. -
-w, --wait <seconds>
β Time in seconds to wait for the result. Default is900
. Must be1β900
.
Check connectivity with the Gobii API.
gobii-cli ping
Returns Pong! π€
or a JSON object depending on format.
List all registered agents.
gobii-cli agents list
List tasks associated with a specific agent.
gobii-cli agent tasks abc123
Delete a specific agent.
gobii-cli agent delete abc123
Retrieve metadata for a specific task.
gobii-cli task get task-xyz
Cancel a specific task.
gobii-cli task cancel task-xyz
Fetch the result of a completed task.
gobii-cli task result task-xyz
You must provide an API key for all commands that interact with the Gobii service. You can do this in two ways:
Command-line argument:
gobii-cli agents list --api-key your-api-key
Environment variable:
export GOBII_API_KEY=your-api-key
To enable debug logging:
gobii-cli agent tasks abc123 --verbose
Use with caution in --format json
mode, as it may break structured output.
gobii-cli prompt "What was the weather like in Washington, DC on June 16, 2024?" --api-key abc123 --format json
gobii-cli prompt "Get the the square footage and property age for 2343 Valley View Terrace, Driftshore Bay, DE from Zillow" --format=json --schema='{"type": "object", "properties": {"squareFootage": {"type": "number"}, "propertyAge": {"type": "number"}}, "required": [], "additionalProperties": false}'
{
"id": "0beb69b7-ac2a-42b1-8fae-1c7d457fc7c6",
"agent_id": null,
"result": {
"propertyAge": 36,
"squareFootage": 2858
},
"status": "completed",
"agent": null,
"prompt": "Get the the square footage and property age for 2343 Valley View Terrace, Driftshore Bay, DE from Zillow",
"output_schema": {
"type": "object",
"properties": {
"squareFootage": {
"type": "number"
},
"propertyAge": {
"type": "number"
}
},
"required": [],
"additionalProperties": false
},
"created_at": "2025-05-25T16:07:39.876836Z",
"updated_at": "2025-05-25T16:07:39.876854Z",
"error_message": null
}
Clone the repo and run locally with:
npm install
npm run dev -- <command>
This project is licensed under the Apache License 2.0.
No warranties, express or implied.
Β© 2025 Gobii, Inc