packages/kilo-docs/pages/code-with-ai/gastown/quick-start.md
This guide walks you through creating your first town, connecting a repository, and watching agents work on real code.
When you first visit Gas Town with no existing towns, you'll be taken directly into the new town onboarding flow. Give your town a name — this is just for your reference.
{% browserFrame url="app.kilo.ai/gastown" caption="The new town onboarding flow" %} {% image src="/docs/img/gastown/gt-new-town-onboarding.png" alt="Gas Town new town onboarding flow" /%} {% /browserFrame %}
Add a rig to your town. A rig is a connection to a specific repository.
main)Gastown uses the Kilo GitHub App to access your repository. You'll be prompted to install it if you haven't already.
{% browserFrame url="app.kilo.ai/gastown/town/rigs/new" caption="Adding a new rig — connect your repository" %} {% image src="/docs/img/gastown/gt-new-rig.png" alt="Gas Town new rig creation flow" /%} {% /browserFrame %}
{% callout type="tip" title="Recommended" %}
Adding a GitHub PAT means all commits, branches, and PRs created by your town's agents will appear as you — not a bot account. It also enables agents to use gh CLI commands (creating issues, commenting on PRs, etc.) on your behalf.
{% /callout %}
{% callout type="info" %} Use a fine-grained token scoped to only the repository your town works on. Since agents act autonomously on your behalf, limiting the token's scope reduces risk. {% /callout %}
Without a PAT, agents use the GitHub App installation token — functional but shows up as a bot in your git history.
Now let's give the agents something to do. The easiest way is to ask the Mayor:
"Add a CONTRIBUTING.md file with basic setup instructions"
Or use the Sling Work action in the town header to describe the task directly.
The reconciler assigns your task to an available polecat agent. Head to the rig page to watch it in action:
in_progress as a polecat picks it upin_review as the refinery checks the workclosed column{% browserFrame url="app.kilo.ai/gastown/town/rigs/main" caption="The rig page — convoy tracker and kanban board showing beads in various states" %} {% image src="/docs/img/gastown/gt-rig-page-convoy-in-progress.png" alt="Gas Town rig page with an active convoy and beads in progress" /%} {% /browserFrame %}
The whole cycle typically takes 2-10 minutes depending on complexity and the model you're using.
Click the Mayor chat to interact with your town's coordinator. Try:
The Mayor is always running — it's your primary interface for managing the town conversationally.
{% browserFrame url="app.kilo.ai/gastown/town" caption="The Mayor — your conversational interface to the town" %} {% image src="/docs/img/gastown/gt-town-overview.png" alt="Gas Town overview with Mayor chat" /%} {% /browserFrame %}