Add the `openai` provider to the CLI's supported providers list,
enabling use of OpenAI-compatible API endpoints (e.g., locally deployed
LLMs via vLLM, llama.cpp, Ollama, LM Studio, etc.).
Changes:
- Add "openai" to supportedProviders in types.ts
- Add "openai" env var mapping (OPENAI_API_KEY) in provider.ts
- Add "openai" case in getProviderSettings() with support for
OPENAI_BASE_URL environment variable for custom endpoints
- Update README environment variable table
The openai provider uses the existing @roo-code/types openAi schema
(openAiBaseUrl, openAiApiKey, openAiModelId) which is already fully
supported in the core extension via OpenAiHandler.
Usage:
export OPENAI_API_KEY=sk-local
export OPENAI_BASE_URL=http://localhost:8080/v1
roo --provider openai --model my-model "Hello"
Closes#11917
feat(bedrock): add Cohere Embed v4 model and improve credential handling
- Add cohere.embed-v4:0 (1536-dim) to Bedrock embedding model profiles
- Add v4-specific request format (embedding_types: ["float"]) and response
parsing (embeddings.float[0]) in BedrockEmbedder
- Replace fromEnv() with fromNodeProviderChain() for default credential
chain when no AWS profile is specified, supporting SSO, IMDS, ECS, and
other credential sources with built-in memoization
- Add unit tests for Cohere v4 request/response handling, credential
provider selection, and v3 regression coverage
Fixes#11823
feat(cli): add create-with-session-id support
rename public task id flag to --create-with-session-id
validate session ids as UUIDs for create/resume and stdin start.taskId
add integration coverage for create+resume loading correct session
* Allow selecting a specific shell
Add --terminal-shell CLI flag to specify which shell ExecaTerminalProcess
uses for inline command execution. The shell path is validated at the CLI
layer and passed through the standard settings mechanism (BaseTerminal
static getter/setter), matching how all other CLI terminal settings flow
through the system.
* test(cli): make shell path access test cross-platform
In CLI runtime, stdin harnesses expect command lifetime to be governed
solely by commandExecutionTimeout (user setting), not model-provided
background timeouts. Extract resolveAgentTimeoutMs() and return 0 when
ROO_CLI_RUNTIME=1.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
feat(cli): support images in stdin stream start and message commands
Add optional `images` field (array of base64 data URIs) to the `start` and
`message` CLI stdin stream commands, allowing callers to attach images to
prompts. The images are validated, forwarded through the extension host, and
included in queued messages.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Propagate the command exit code through the JSON event emitter so CLI
consumers can distinguish between successful and failed command
executions without parsing output text.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>