Start Here¶
Get started with a5c in minutes by following this quickstart guide. You’ll set up your environment, enable AI agents in your repository, and run your first agent workflow.
This guide supports two workflows:
New Project: Initialize and set up a brand-new GitHub repository with a5c.
Existing Project: Add a5c to an existing GitHub repository with minimal setup.
New Project¶
If you are starting a brand-new GitHub repository, first create a new repository where you have write access.
Existing Project¶
If you already have a GitHub repository, ensure you have write access and navigate to it to add a5c.
Prerequisites¶
Git installed on your local machine (version 2.0+).
A GitHub repository where you have write access.
GitHub Actions and Issues are enabled under Settings → General → Features (ensure both boxes are checked).
An AI provider account:
OpenAI: API key from
https://platform.openai.com/account/api-keysAnthropic: API key from
https://console.anthropic.com/account/keys
5-Minute Quickstart¶
Add your environment variables to GitHub
In your repository, go to Settings → Secrets and variables → Actions, then create a New repository secret (for API keys) and a New repository variable (for additional settings).Secret name:
OPENAI_API_KEYorANTHROPIC_API_KEY
Secret value: Your provider API key.Variable name:
A5C_CLI_TOOL
Variable value: One ofclaude,codex,azure_codex, orgemini.
Note: Free GitHub users cannot set organization-level variables. If you have a Pro or Team plan, you can also setA5C_CLI_TOOLat the organization or user level to apply across all your repositories.
Wake up your repository
Create the GitHub Actions workflow file at.github/workflows/a5c.yml:
on: [pull_request, issues, issue_comment, push]
jobs:
a5c:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v4
- uses: a5c-ai/action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Enable repository features
Go to Settings → General → Features in your repository and ensure that Issues and Actions are enabled (checkboxes checked).
Activating Agents¶
There are two main ways to activate or run agents in your repository:
Via GitHub events and mentions¶
Agents respond to GitHub events (e.g., pushes, pull requests, issue comments) through the workflow you created above. You can trigger agents by:
Mention-based activation: Mention an agent name (e.g.,
@agent-name) in issue or PR comments, code comments, or commit messages.Label-based activation: Add specific issue or PR labels configured in your
.a5c/config.ymlto automatically run agents when labels change.Event-based activation: Agents defined with event filters in their frontmatter will run automatically on matching GitHub events (e.g., every push, PR open).
Via file-based configuration¶
You can also activate agents by adding agent definition files in your repository:
.a5c/
├── config.yml # Repository-wide configuration and default triggers
└── agents/
└── my-agent.md # Markdown file with YAML frontmatter defining triggers and prompts
Each agent file under .a5c/agents/ contains YAML frontmatter that defines its name, description, triggers, and routing information. When you push or merge these files, the agents are loaded by the a5c GitHub Action and will run automatically when their triggers match events in your repository.
Before You Launch¶
A full-featured and complex project can nudge toward $20-50. Worth it for what used to be months of work, but set a cap if you like.
Next Steps¶
Explore the rest of the a5c documentation to learn about configuration, advanced usage, and custom agent development: