core-agent-ide/codex-rs/common/src
rugvedS07 837bc98a1d
LM Studio OSS Support (#2312)
## Overview

Adds LM Studio OSS support. Closes #1883


### Changes
This PR enhances the behavior of `--oss` flag to support LM Studio as a
provider. Additionally, it introduces a new flag`--local-provider` which
can take in `lmstudio` or `ollama` as values if the user wants to
explicitly choose which one to use.

If no provider is specified `codex --oss` will auto-select the provider
based on whichever is running.

#### Additional enhancements 
The default can be set using `oss-provider` in config like:

```
oss_provider = "lmstudio"
```

For non-interactive users, they will need to either provide the provider
as an arg or have it in their `config.toml`

### Notes
For best performance, [set the default context
length](https://lmstudio.ai/docs/app/advanced/per-model) for gpt-oss to
the maximum your machine can support

---------

Co-authored-by: Matt Clayton <matt@lmstudio.ai>
Co-authored-by: Eric Traut <etraut@openai.com>
2025-11-17 11:49:09 -08:00
..
approval_mode_cli_arg.rs [approval_policy] Add OnRequest approval_policy (#1865) 2025-08-05 20:44:20 -07:00
approval_presets.rs feat(tui): clarify Windows auto mode requirements (#5568) 2025-10-28 01:19:32 +00:00
config_override.rs chore: verify boolean values can be parsed as config overrides (#6516) 2025-11-12 08:19:16 -08:00
config_summary.rs feat: reasoning effort as optional (#3527) 2025-09-12 12:06:33 -07:00
elapsed.rs Add spacing to timer duration formats (#3471) 2025-09-12 12:05:57 -04:00
format_env_display.rs [MCP] Redact environment variable values in /mcp and mcp get (#5648) 2025-10-24 18:30:20 -04:00
fuzzy_match.rs Scrollable slash commands (#1830) 2025-08-06 21:23:09 -07:00
lib.rs LM Studio OSS Support (#2312) 2025-11-17 11:49:09 -08:00
model_presets.rs Reasoning level update (#6586) 2025-11-13 06:24:36 +00:00
oss.rs LM Studio OSS Support (#2312) 2025-11-17 11:49:09 -08:00
sandbox_mode_cli_arg.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00
sandbox_summary.rs feat: add /tmp by default (#1919) 2025-08-07 00:17:00 -07:00