Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Add authentication header instructions to README (#135)

Jaana Dogan0e8ccb3d170b
diff --git a/README.md b/README.md
index 49cf07d..59adfed 100644
--- a/README.md
+++ b/README.md
@@ -315,11 +315,26 @@ For safety and control, any execution initiated by the bash tool requires explic
AX includes a built-in Gemini agent that can be used to generate text based on a given prompt. The agent is registered as `gemini` and can be triggered as a standalone agent or used from custom agent implementations.
-```
+```bash
ax exec --agent gemini \
--input "Hello, how are you?"
```
+#### Authentication
+
+The Gemini agent supports authentication using either Google AI Studio or Vertex AI:
+
+```bash
+# AI Studio API key based authentication.
+export GEMINI_API_KEY="your-api-key"
+
+# Vertex AI based authentication, ensure application
+# default credentials are set up, gcloud auth application-default login.
+export GCLOUD_PROJECT="your-project-id"
+export GCLOUD_LOCATION="us-central1"
+export GOOGLE_GENAI_USE_VERTEXAI=True
+```
+
## Building Custom Agents
There are several ways to register custom agents in AX by implementing