CLI v4.0.4HiveLang v4

Quick Start

Deploy your first intelligent agent swarm in under 5 minutes.

Objective

We will build a "Research Agent" that can search the web and summarize findings using f-strings and v4 tool syntax.

1. Initialize Project

Use the CLI to bootstrap a new Hivelang project.

hive init "Researcher"

2. Define Your Bot

Open researcher.hive and add the following v4 logic:

researcher.hive
bot "Researcher" description "A helpful assistant that researches topics online." on input say f"🔍 Searching for: {input}" // Call the v4 search integration call integrations.google.search( query: input ) as results // Summarize with v4 AI standard library call ai.generate( prompt: f"Summarize these search results: {results}" ) as summary say summary end end

3. Run Locally

Test your bot immediately in development mode with hot-reloading.

hive dev researcher.hive

4. Deploy to Swarm

Push your bot to Bothive Cloud to get a persistent production API endpoint.

hive deploy researcher.hive

Was this page helpful?

Confused? Ask HiveMind.

Our autonomous AI assistant can explain any concept, write code snippets, or guide you through the SDK.