-
Notifications
You must be signed in to change notification settings - Fork 1
Update page structure of server quickstart, additional small edits #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,54 +4,54 @@ description: Install Agent Control, start the server, and protect your first age | |
| icon: "rocket" | ||
| --- | ||
|
|
||
| Protect your AI agent in 4 simple steps. | ||
| The instructions on this page describe two ways to install Agent Control for testing in your local environment: | ||
|
|
||
| - Quick setup using prebuilt Docker images. | ||
| - Local development using the `agent-control` GitHub repository. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - **Python 3.12+** | ||
|
|
||
| - **Docker** | ||
| - **uv** | ||
|
|
||
| - **Docker** — for quick setup | ||
|
|
||
| - **Node.js 18+** — for the local development web dashboard (optional) | ||
|
|
||
| This tutorial was tested on macOS. | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this was tested on macOS, but not which versions. It would be good to add version detail if available. Just sticking this line here isn't my favorite, but it's a clue if someone runs into trouble on their system. Thorough testing of OS requirements is beyond the scope of this PR. For me, it worked on Ubuntu 24.04 but not 22.04. |
||
|
|
||
| <Tip> | ||
| **Quick setup (no repo cloning required)** - Copy this into your terminal or directly paste into your coding agent to start the Agent Control server, UI: | ||
| ## Install Agent Control | ||
|
|
||
| ### Quick setup (Docker) | ||
|
|
||
| To start the Agent Control server and UI, copy the following command into your terminal or paste into your coding agent: | ||
|
|
||
| ```bash | ||
| curl -L https://raw.githubusercontent.com/agentcontrol/agent-control/refs/heads/main/docker-compose.yml | docker compose -f - up -d | ||
| ``` | ||
|
|
||
| Then, install sdk in your virtual env: | ||
| Then, install the SDK in your virtual environment: | ||
|
|
||
| ```bash | ||
| uv venv | ||
| source .venv/bin/activate | ||
| uv pip install agent-control-sdk | ||
| ``` | ||
|
|
||
| **What this does:** | ||
| What this does: | ||
|
|
||
| - ✅ Starts Agent Control server at `http://localhost:8000` | ||
| - ✅ Starts UI dashboard at `http://localhost:8000` | ||
| - ✅ Installs Python SDK (`agent-control-sdk`) | ||
|
|
||
| **Next:** Jump to [Step 3: Register your agent](#step-3-register-your-agent) | ||
|
|
||
| </Tip> | ||
|
|
||
|
|
||
| **Alternatively**, for local development with the Agent Control repository, clone the repo and follow all steps below. | ||
|
|
||
|
|
||
| ## Step 1: Start the Agent Control Server | ||
|
|
||
| Startup AgentControl server manually for local development. | ||
|
|
||
| ### Local development (cloning the repo) | ||
| Confirm you can access the Agent Control UI at `http://localhost:8000` and continue to [Register your agent](#register-your-agent). | ||
|
|
||
| Prerequisites: | ||
| ### Local development (GitHub repository) | ||
|
|
||
| - **uv** — Fast Python package manager (`curl -LsSf https://astral.sh/uv/install.sh | sh`) | ||
| Start the AgentControl server manually for local development. | ||
|
|
||
| - **Node.js 18+** — For the web dashboard (optional) | ||
| #### Clone the repository and start Agent Control | ||
|
|
||
| ```bash | ||
|
|
||
|
|
@@ -80,15 +80,15 @@ make ui-dev | |
|
|
||
| > 💡 **Verify the server:** Open [http://localhost:8000/health](http://localhost:8000/health) — you should see `{"status": "healthy", "version": "..."}`. | ||
|
|
||
| ## Step 2: Install the SDK | ||
| #### Install the SDK | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. H4s are less than ideal but work. Perhaps revisit with a larger overhaul in the future. |
||
|
|
||
| In your agent application project: | ||
|
|
||
| ```bash | ||
| uv pip install agent-control-sdk | ||
| ``` | ||
|
|
||
| ## Step 3: Register Your Agent | ||
| ## Register Your Agent | ||
|
|
||
| Agent must be registered with the server. You should also add `@control` decorator around tools and LLM call functions. | ||
|
|
||
|
|
@@ -128,7 +128,7 @@ async def main(): | |
| asyncio.run(main()) | ||
| ``` | ||
|
|
||
| ## Step 4: Add Controls | ||
| ## Add Controls | ||
|
|
||
| The easiest way to add controls is through the UI — see the [UI Quickstart](/core/ui-quickstart) for a step-by-step guide. Alternatively, use the SDK as shown below or call the API directly. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,14 +8,14 @@ The Agent Control dashboard lets you manage [controls](/concepts/controls) and m | |
|
|
||
| ## Prerequisites | ||
|
|
||
| Before starting the UI, make sure the **Agent Control server** is already running. If you haven't set it up yet, follow the [Quickstart](/core/quickstart) first. | ||
| Before starting the UI, make sure the **Agent Control server** is already running. If you haven't set it up yet, follow the [Quickstart](/core/quickstart) first. This tutorial was tested on macOS. | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| You also need: | ||
|
|
||
| - **Node.js 20+** (CI uses 20; 18+ may work) | ||
| - **pnpm 9+** — install from [pnpm.io](https://pnpm.io/) or run `corepack enable && corepack prepare pnpm@latest --activate` | ||
|
|
||
| > **Note:** If you started the server using **One-line setup** from the [Quickstart](/core/quickstart), the UI is already running at [http://localhost:4000](http://localhost:4000). You can skip the setup steps below and jump directly to [viewing the dashboard](#create-controls-from-the-ui). | ||
| > **Note:** If you started the server using **One-line setup** from the [Quickstart](/core/quickstart), the UI is already running at [http://localhost:4000](http://localhost:4000). You can skip the setup steps below and jump directly to [Create Controls from the UI](#create-controls-from-the-ui) to add a control. | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original text for this link was not clear where it was sending you. Updated to match the target header. |
||
| ## Start the UI Server | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example did not work for me because
falsewas undefined. Both"false"andFalseworked, changed this toFalseto make it more obvious it is a bool.