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:textorjson(default:text). In JSON mode,--silentis 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. (--verboseoverrides)-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
--schemaand--schema-fileare provided,--schematakes 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 pingReturns Pong! 🤘 or a JSON object depending on format.
List all registered agents.
gobii-cli agents listList tasks associated with a specific agent.
gobii-cli agent tasks abc123Delete a specific agent.
gobii-cli agent delete abc123Retrieve metadata for a specific task.
gobii-cli task get task-xyzCancel a specific task.
gobii-cli task cancel task-xyzFetch the result of a completed task.
gobii-cli task result task-xyzYou 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-keyEnvironment variable:
export GOBII_API_KEY=your-api-keyTo enable debug logging:
gobii-cli agent tasks abc123 --verboseUse 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 jsongobii-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