grokly

Query the xAI Responses API with local project context via the grokly CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bytes032/agentkit --skill grokly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grokly
Source: https://github.com/bytes032/agentkit/tree/main/skills/grokly
Command: npx skills add https://github.com/bytes032/agentkit --skill grokly

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Grokly provides a lightweight CLI to query the xAI Responses API using local project context, enabling fast, private, and repeatable prompts.

Core Features & Use Cases

  • Single-turn prompts using respond
  • Stateful multi-turn chats with a session file
  • Streaming responses for long prompts
  • Local job-file polling for background tasks
  • Configurable tools, models, and allowlists for secure usage

Quick Start

Install grokly, set your API key, and run the CLI to send a prompt or start a streaming session.

Frequently Asked Questions about grokly

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query the xAI Responses API using local project context?

You can query the xAI Responses API with local project context by configuring a grokly.config.json file to define model and timeout settings, then executing single-turn prompts via the grokly CLI.

Does the xAI Responses API support stateful multi-turn chats and streaming responses?

Yes, stateful multi-turn chats and streaming responses are supported. The CLI uses a session file to maintain chat state across turns and handles streaming to manage long prompts efficiently.

How do I poll local job files for background tasks with the xAI API?

Local job-file polling for background tasks is supported directly within the developer workflow. You configure the polling behavior in your grokly.config.json file alongside your model and tool settings.

Do I need Node.js to use a CLI for querying xAI with project context?

Yes, Node.js is required to run the CLI. You also need the CLI installed locally and a grokly.config.json file containing your model, timeout, tools, and allowlist configurations.

How do I configure tools and allowlists for secure xAI API usage?

Secure usage is managed through the grokly.config.json file, where you define specific tools and an allowlist. This configuration ensures controlled access when executing prompts within your developer workflow.