Quick Start π‘ BETA
This page runs a local botserver stack and takes you to a first chat answer; it is the short path into GB Lite.
Installation in 3 Steps
1. Run botserver
- Open a terminal in the directory that holds the
botserverbinary. - Run
./botserver. - Leave the process running until bootstrap finishes.
./botserver
2. Wait for Bootstrap (2-5 minutes)
The first run creates botserver-stack/, downloads the pinned components, seeds credentials in Vault and deploys the default bot. Check progress with the health endpoint rather than by reading a fixed log line.
curl -s http://localhost:8080/health
3. Open Browser
- Open
http://localhost:3000. - Select the default bot.
- Type a short question and press Enter.
What Just Happened?
Bootstrap Flow
| Stage | Result |
|---|---|
| Detect host | OS and architecture are read |
| Install components | Versions come from botserver/3rdparty.toml |
| Initialize services | Database, object storage and secrets are prepared |
| Deploy default bot | A bot is registered from the templates |
Using Existing Services
Platform endpoints and credentials live in Vault, not in config.csv. Per-bot keys, such as server-port, live in the bot's config.csv. See Installation for the Vault paths and config.csv format for the keys.
Step 2: Write a Simple Tool
How Tools Work
- Create a
.basfile in the bot's.gbdialog/folder. - Declare inputs with
PARAMand describe the tool withDESCRIPTION. - Use
TALKfor the answer. - Commit the file in the bot's repository when the bot is git-owned.
PARAM topic:string DESCRIPTION "The topic to record"
DESCRIPTION "Records a short note"
TALK "Noted: " + topic
The compiler parses PARAM and DESCRIPTION. See Tool Definition and the BASIC keywords.
Step 3: Add Knowledge Base
- Put documents in the bot's
.gbkb/folder in Drive. - Wait for the drive monitor to reload them.
- Ask a question covered by the documents.
Container Deployment (Incus)
- Create an instance with base image
images:ubuntu/24.04. - Install the runtime dependencies inside it.
- Run the binary and check the health endpoint.
incus launch images:ubuntu/24.04 botserver
incus start botserver
Run container create commands on the host. See Container Deployment for the supported layer.
Optional Components
Use the component CLI only for components you need:
botserver install vault
botserver install vector_db
Check the CLI reference for the exact component names and the --container form.
Example Bot Structure
{org}.gborg/
βββ {workspace}.gbai/
βββ {bot}.gbot/ # config.csv, PROMPT-{CHANNEL}.md
βββ {bot}.gbdialog/ # start.bas and tools
βββ {bot}.gbkb/ # documents
βββ {bot}.gbdrive/ # generated files and media
Upload the tree to Drive to register a bot. The work/ folder is an internal materialization target.
Local Development with Auto-Sync
- Configure an S3-compatible client for the Drive endpoint.
- Sync a local folder to the
{org}.gborg/{workspace}.gbaiprefix. - Let the drive monitor pick up
.gbkb/and.gbdrive/changes.
rclone sync ./workspace.gbai drive:workspace.gborg/workspace.gbai --watch
.gbdialog/ and .gbot/ changes for a git-owned bot belong in the bot's repository, not in a direct Drive edit.
How It Really Works
1. Add Documents
Documents in .gbkb/ supply the content the bot can use when it answers.
2. Create Tools (Optional)
A tool needs a file in .gbdialog/, PARAM declarations and a DESCRIPTION.
3. Start Chatting!
Send a question in the suite at http://localhost:3000. The thread is kept as a session.
Configuration (Optional)
Per-bot settings are keys in config.csv. The generated config.csv format lists the keys; do not copy a key from an older example.
Troubleshooting
Port 8080 in use?
- Stop the process that holds the port, or set
server-portin the bot'sconfig.csv. - Re-run
curl -s http://localhost:8080/health.
Clean install?
On a dedicated development host, remove botserver-stack/ and the ignored .env, then run ./botserver again. Do not do this on a host with data you need.
Check component status
botserver list
botserver status tables
The component name is required after status.
Documentation
- Installation β bootstrap, dependencies and ports.
- Tool Definition β tool declarations.
- BASIC keywords β the language reference.
The Magic Formula
What You DON'T Need:
A hand-written intent table, dialog tree or state machine is not required for a simple tool.
What You DO:
Add documents, declare a tool and chat. The inputs are the files under .gbkb/, .gbdialog/ and .gbot/.
Philosophy
- Run the binary first; inspect the result second.
- Keep bot files in Drive, not in
work/. - Keep the channel prompt beside the tool it governs.
- Verify with the health endpoint and the rendered page.
Real Example: Education Bot
- Add course material to
.gbkb/. - Add a tool to
.gbdialog/withPARAMdeclarations and aDESCRIPTION. - Add the channel prompt to
.gbot/. - Ask a question about the course in chat.
The answer depends on the files you supplied; this page does not guarantee a wording.