Google Gemini/Vertex
Gemini - Google AI Studio configuration
When running Faheem Code, you'll need to set the following in the Faheem Code UI through the Settings under the LLM tab:
LLM ProvidertoGeminiLLM Modelto the model you will be using. If the model is not in the list, enableAdvancedoptions, and enter it inCustom Model(e.g. gemini/<model-name> likegemini/gemini-2.0-flash).API Keyto your Gemini API key
VertexAI - Google Cloud platform configuration
To use Vertex AI through Google Cloud Platform when running Faheem Code, you'll need to set the following environment
variables using -e in the docker run command:
GOOGLE_APPLICATION_CREDENTIALS="<json-dump-of-gcp-service-account-json>"
VERTEXAI_PROJECT="<your-gcp-project-id>"
VERTEXAI_LOCATION="<your-gcp-location>"
Then set the following in the Faheem Code UI through the Settings under the LLM tab:
LLM ProvidertoVertexAILLM Modelto the model you will be using. If the model is not in the list, enableAdvancedoptions, and enter it inCustom Model(e.g. vertex_ai/<model-name>).
Vertex AI dependencies
The vertex_ai/* models (including Gemini and Claude via Vertex AI) require the
google-cloud-aiplatform package, which is not included by default in the published
agent-server image. How you enable it depends on your deployment:
Local / non-Docker install
Install the vertex extra in your Python environment:
pip install "faheemcode-sdk[vertex]"
# or, with uv (works in any Python environment):
uv pip install "faheemcode-sdk[vertex]"
Custom agent-server image
Build the image with the ENABLE_VERTEX build flag (the container build file is in the
software-agent-sdk repo;
run from the repo root):
docker build \
--build-arg ENABLE_VERTEX=1 \
-t my-agent-server:vertex \
-f faheemcode-agent-server/faheemcode/agent_server/docker/Dockerfile \
.
Then point Faheem Code at your custom image via the AGENT_SERVER_IMAGE_REPOSITORY and
AGENT_SERVER_IMAGE_TAG environment variables (see the
Custom Sandbox Guide for details).
Faheem Code Enterprise (Replicated / Kubernetes)
The default FCE installer Vertex path routes LLM calls through a LiteLLM proxy — the
agent-server uses a litellm_proxy/... model, and the proxy makes the actual Vertex call.
So the agent-server image does not need Vertex enabled for the default path; ENABLE_VERTEX=1
is only relevant if you customize FCE to bypass the proxy and call vertex_ai/* directly from
the agent-server.
Claude via Vertex AI
If you route Anthropic Claude through Google Vertex AI / Model Garden (rather than direct
Anthropic endpoints), use the vertex_ai/ prefix with the Vertex-published model name,
which is date-stamped:
Custom Model:vertex_ai/claude-sonnet-4-5@20250929
Use the exact model name shown in your Vertex AI Model Garden console.
Troubleshooting
Vertex AI SDK import error
If you encounter this error:
litellm.BadRequestError: Vertex_aiException BadRequestError - vertexai import failed
please run `pip install -U "google-cloud-aiplatform>=1.38"`.
Got error: No module named 'vertexai'
This means the agent-server image does not include the Vertex AI SDK. Enable the vertex
extra as described in Vertex AI Dependencies above.