Before you begin
You’ll need:- A repository or project directory to analyze
- An API key from Gemini, Claude, or OpenAI (or use Beacon Cloud with USDC payment)
- Basic command line knowledge
For this quickstart, we’ll use Gemini 2.5 Flash (the default provider) since it’s free and fast. You can get an API key at Google AI Studio.
Step 1: Install Beacon
Run the install script:beacon 0.2.4.
Alternative: Use Docker
Alternative: Use Docker
If you prefer Docker:You’ll need to adjust the commands below to use Docker. See the Docker deployment guide for details.
Step 2: Set your API key
Export your Gemini API key as an environment variable:--api-key if you prefer:
Step 3: Generate your AGENTS.md
Navigate to your project directory or specify a path:- Scan your repository for source files, README, and manifests
- Send the context to Gemini for AI inference
- Generate an AGENTS.md file in the current directory
Step 4: Review the generated file
Open the generatedAGENTS.md file:
AGENTS.md
- POST /auth/login with email and password
Endpoints
POST /auth/login
Authenticate a user and receive a JWT token.
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | ✅ | User’s email address |
password | string | ✅ | User’s password |
GET /users/:id
Retrieve user information by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | ✅ | User’s unique identifier |
Generated by Beacon — Make any repo agent-ready. Instantly.
Optional: Check endpoint reachability
If your service is running locally, you can validate that the documented endpoints are actually reachable:A 404 is considered “reachable” — it means the server responded. Only 5xx errors are marked as unreachable.
Customization options
Use a different AI provider
Switch to Claude or OpenAI:Custom output path
Write the AGENTS.md file to a different location:Analyze a GitHub repository
You can pass a GitHub URL instead of a local path:What’s in the generated file?
Beacon analyzes your codebase and generates these sections:Capabilities
Capabilities
High-level actions an AI agent can perform with your repository. Each capability includes:
- Name (snake_case identifier)
- Description (what it does)
- Input schema (JSON schema for parameters)
- Output schema (JSON schema for return value)
- Examples (common use cases)
Endpoints
Endpoints
HTTP API endpoints extracted from your source code. Includes:
- Method (GET, POST, PUT, DELETE)
- Path (with parameter placeholders)
- Description
- Parameter table (name, type, required, description)
Authentication
Authentication
How agents should authenticate with your service:
- Type:
bearer,api_key, ornone - Description of the authentication flow
Rate limits
Rate limits
API rate limiting information:
- Requests per minute
- Requests per day
- Additional notes
Next steps
Now that you’ve generated your first AGENTS.md file:Understand how it works
Learn about the scanning and inference process
CLI reference
Explore all available commands and options
Multiple providers
Compare Gemini, Claude, OpenAI, and Beacon Cloud
Deploy as an API
Run Beacon as a web service with Docker
Troubleshooting
”No API key” error
If you see:“Failed to reach [Provider] API” error
This usually means:- Network connectivity issues
- Invalid API key
- Rate limiting from the provider
Empty or minimal AGENTS.md
If Beacon generates a very minimal file with few capabilities:- Ensure your project has a README explaining what it does
- Check that source files are being scanned (look for “X source files collected”)
- Try adding inline comments to your endpoint handlers
- Consider using a different AI provider