VM0VM0
Agent Skills

GitHub Copilot

Manage Copilot subscriptions and usage metrics

GitHub Copilot API allows managing Copilot subscriptions and retrieving usage metrics for organizations.

Required Environment

NameTypeDescription
GITHUB_TOKENsecretPersonal access token with manage_billing:copilot scope

Configuration

vm0.yaml
version: "1.0"

agents:
  my-agent:
    framework: claude-code
    skills:
      - https://github.com/vm0-ai/vm0-skills/tree/main/github-copilot

Run

Store your secret on the platform (recommended, one-time setup):

vm0 secret set GITHUB_TOKEN your-github-token

Then run your agent - secret is automatically loaded:

vm0 run my-agent "get Copilot usage metrics"

For CI/CD or temporary overrides, pass secrets at runtime: --secrets GITHUB_TOKEN=value. See Environment Variables for details.

Example Instructions

AGENTS.md
# Copilot Admin Agent

You manage GitHub Copilot subscriptions.

## Workflow

1. Get current seat assignments
2. Add or remove users from Copilot
3. View billing information
4. Report subscription status

## Permissions Required

- manage_billing:copilot
- admin:org
AGENTS.md
# Usage Analytics Agent

You analyze Copilot usage metrics.

## Workflow

1. Retrieve usage metrics
2. Analyze active users
3. Track code completion stats
4. Generate usage reports

## Metrics Available

- Active users, completions, chat usage