Skip to content

The GiiS CLI is a terminal interface for chatting with your GiiS agents and querying your knowledge base. Built with Go using Bubble Tea, it provides both an interactive TUI and non-interactive commands for scripting and automation.

Installation

Build from Source

Requires Go 1.26+.

shell
git clone --depth 1 https://github.com/giis-ai/giis.git
cd giis/cli
go build -o giis-cli .
sudo mv giis-cli /usr/local/bin/

PyPI

Once a release is published, the CLI will also be installable as a Python package:

shell
pip install giis-cli

Or with uv:

shell
uv pip install giis-cli

Setup

On first launch, the interactive chat TUI walks you through setup automatically:

shell
giis-cli chat

This prompts for your GiiS server URL and personal access token (PAT), tests the connection, and saves config to ~/.config/giis-cli/config.json (or $XDG_CONFIG_HOME/giis-cli/config.json if set). To reconfigure later, use the /configure command inside the TUI.

Generating an Access Token

Navigate to User Settings > Accounts & Access > New Access Token (/app/settings/accounts-access) to create an access token for the CLI.

Environment Variables

Environment variables override config file values. This is useful for CI/CD pipelines and scripting.

VariableRequiredDescription
GIIS_SERVER_URLNoServer URL (default: https://cloud.giis.app)
GIIS_PATNoPersonal access token for authentication (required if no config file)
GIIS_PERSONA_IDNoDefault agent/persona ID
GIIS_STREAM_MARKDOWNNoEnable/disable progressive markdown rendering (true/false)
GIIS_SSH_HOST_KEYNoPath to SSH host key for the serve command

Validate Configuration

Verify that your configuration is correct and the server is reachable:

shell
giis-cli validate-config

Commands

CommandModeDescription
chatInteractiveLaunch the interactive chat TUI (requires terminal)
askAgent / ScriptAsk a question and print the answer to stdout
agentsAgent / ScriptList available agents (ID, name, description)
validate-configAgent / ScriptCheck CLI configuration and server connectivity
install-skillAgent / ScriptInstall the GiiS CLI agent skill file
experimentsAgent / ScriptList experimental features and their status
serveInteractiveServe the GiiS TUI over SSH

Global Flags

FlagDescription
--version, -vPrint client and server version information
--debugRun in debug mode (verbose logging)

Interactive Chat

shell
giis-cli chat
giis-cli chat --no-stream-markdown

Opens a full-screen terminal UI for conversational interaction with your GiiS agents.

FlagDescription
--no-stream-markdownDisable progressive markdown rendering during streaming

One-Shot Questions

Ask a question and get a response without entering the TUI:

shell
giis-cli ask "What is our company's PTO policy?"

Use --agent-id to target a specific agent:

shell
giis-cli ask --agent-id 5 "Summarize our Q4 roadmap"

Use --json for structured NDJSON output (useful for scripting):

shell
giis-cli ask --json "List all active API integrations"
FlagDescription
--agent-id <int>Agent ID to use (overrides default)
--jsonOutput NDJSON events instead of plain text
--prompt <string>Question text (use with piped stdin context)
--quietBuffer output and print once at end
--max-output <int>Max bytes before truncating (0 to disable)

List Agents

shell
giis-cli agents
giis-cli agents --json

Prints a table of available agent IDs, names, and descriptions.

Serve over SSH

Share the interactive TUI over SSH — useful for accessing GiiS from a machine where you don't want to store credentials locally:

shell
giis-cli serve --host 0.0.0.0 --port 2222

Clients can then connect and either paste a personal access token at the login prompt, or skip it by sending GIIS_PAT over SSH:

shell
ssh your-host -p 2222

Slash Commands (Interactive TUI)

When using the interactive chat, the following slash commands are available:

CommandDescription
/helpShow help message
/clearClear chat and start a new session
/agentList and switch agents
/attach <path>Attach a file to next message
/sessionsList recent chat sessions
/configureRe-run connection setup
/connectorsOpen connectors in browser
/settingsOpen settings in browser
/quitExit GiiS CLI

Using as an AI Coding Assistant Skill

The GiiS CLI can be used as a tool by AI coding assistants (such as Claude Code and Cursor) to query your knowledge base directly from within your development environment.

Install the bundled skill file so your AI assistant can discover the CLI:

shell
giis-cli install-skill
giis-cli install-skill --global
giis-cli install-skill --copy
giis-cli install-skill --agent claude-code
FlagDescription
--global, -gInstall to home directory instead of project
--copyCopy files instead of symlinking
--agent, -aTarget specific agents (e.g. claude-code; can be repeated)

Once configured, the AI assistant can call giis-cli ask to look up company-specific information — policies, internal docs, connected data sources — without leaving the editor.

When the skill is invoked

The skill is triggered when you ask your AI assistant about:

  • Company-specific information (policies, processes, documentation)
  • Internal knowledge bases or connected data sources
  • Anything referencing GiiS, "search GiiS", or querying company documents

It is not used for general programming questions or questions about code in the current repository.

Configuration for agents

If a human has already run giis-cli chat once (which includes first-time setup), the CLI works out of the box — AI assistants can invoke giis-cli ask directly with no additional setup.

Alternatively, you can configure via environment variables, which override the config file and are useful for CI/CD or sandboxed environments:

shell
export GIIS_SERVER_URL="https://your-giis-server.com"
export GIIS_PAT="your-personal-access-token"

JSON output for structured parsing

Use --json to get NDJSON event output, which is easier for agents to parse programmatically:

shell
giis-cli ask --json "List all active API integrations"
Event TypeDescription
message_deltaContent token — concatenate all content fields for the full answer
stopStream complete
errorError with error message field
search_tool_startGiiS started searching documents
citation_infoSource citation with citation_number and document_id

Keyboard Shortcuts

KeyAction
EnterSend message
EscapeCancel current generation
Ctrl+OToggle source citations
Ctrl+DQuit (press twice)
Scroll / Shift+Up/DownScroll chat history
Page Up / Page DownScroll half page

Released under the MIT License.