> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Classroom: Education Access for AI Agents

> Manage courses, assignments, and student rosters through the Classroom API. OAuth credentials injected by the gateway.

## Overview

OneCLI connects AI agents to Google Classroom through Google's OAuth flow. Agents can manage courses, create and grade assignments, and view student rosters. The gateway injects OAuth credentials into requests to the Google Classroom API automatically.

This is useful for education-focused agents that need to automate course management, distribute assignments, or process student submissions.

## Setup

<Steps>
  <Step title="Go to Connections">
    Open the OneCLI dashboard and navigate to **Connections** > **Google Classroom**.
  </Step>

  <Step title="Authorize">
    Click **Connect Google Classroom**. You'll be redirected to Google to authorize OneCLI. Review the permissions and click **Allow**.
  </Step>
</Steps>

## What agents can do

* List courses and their details (name, section, status, enrollment code)
* Create new courses with specified name, section, and description
* Update course details and archive courses
* List students and teachers enrolled in a course
* Invite students or teachers to a course
* Create coursework (assignments, quizzes) with due dates and point values
* List and read student submissions
* Grade student submissions and return them with feedback
* Create course materials and announcements
* Read and post to the course stream

## Controlling access with rules

Use OneCLI's [rules engine](/guides/rules) to limit what agents can do with Google Classroom. For example, you can allow read-only access for reporting agents, or block grade modifications. Rules are evaluated before credential injection, so a blocked request never reaches Google Classroom.
