Add AWS Bedrock auth mode with per-project configuration
All checks were successful
Build Container / build-container (push) Successful in 3m29s

Introduces a third auth mode alongside Login and API Key, allowing
projects to authenticate Claude Code via AWS Bedrock. Includes support
for static credentials, profile-based, and bearer-token auth methods
with full UI controls. Also adds a URL accumulator to the terminal to
reassemble long OAuth URLs split across hard newlines, and installs
the AWS CLI v2 in the container image.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 14:29:40 +00:00
parent 625260b060
commit ca51e73924
8 changed files with 332 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ export interface Project {
container_id: string | null;
status: ProjectStatus;
auth_mode: AuthMode;
bedrock_config: BedrockConfig | null;
allow_docker_access: boolean;
ssh_key_path: string | null;
git_token: string | null;
@@ -21,7 +22,21 @@ export type ProjectStatus =
| "stopping"
| "error";
export type AuthMode = "login" | "api_key";
export type AuthMode = "login" | "api_key" | "bedrock";
export type BedrockAuthMethod = "static_credentials" | "profile" | "bearer_token";
export interface BedrockConfig {
auth_method: BedrockAuthMethod;
aws_region: string;
aws_access_key_id: string | null;
aws_secret_access_key: string | null;
aws_session_token: string | null;
aws_profile: string | null;
aws_bearer_token: string | null;
model_id: string | null;
disable_prompt_caching: boolean;
}
export interface ContainerInfo {
container_id: string;