You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
I would like to use Foundry Local to run LLMs directly on my computer. Please consider adding support for it, as this would allow me to reuse existing models without needing to download another local model provider and duplicate model weights.
In PowerShell, run the following commands to start up the Foundry service and load the model (use phi-3.5-mini as an example)
PS> foundry service start
🟢 Service is already running on http://127.0.0.1:56952/.
PS> foundry model load phi-3.5-mini
🕔 Loading model...
🟢 Model phi-3.5-mini loaded successfully
PS> foundry service ps
Models running in service:
Alias Model ID
🟢 phi-3.5-mini Phi-3.5-mini-instruct-generic-cpu
Be noted that:
The endpoint to use is the URL shown from foundry service start plus /v1.
The model name to use is shown as the 'Model ID' from the foundry service ps command.
Make sure you use the exact casing as shown in 'Model ID'. Foundry Local is case-sensitive.
The API key is hardcoded to be literally "OPENAI_API_KEY".
Activity
daxian-dbw commentedon Aug 28, 2025
With #413 being merged, you should be able to use the
openai-gptagent against a Foundry Local service endpoint.Use Foundry Local with
openai-gptagentUpdate the
openai.agent.jsonfile with the following GPT configuration:{ "GPTs": [ { "Name": "foundry-local", "Description": "A GPT instance using Foundry Local.", "Endpoint": "http://127.0.0.1:56952/v1", "ModelName": "Phi-3.5-mini-instruct-generic-cpu", "Key": "OPENAI_API_KEY" } ] "Active": "foundry-local" }In PowerShell, run the following commands to start up the Foundry service and load the model (use
phi-3.5-minias an example)Be noted that:
foundry service startplus/v1.foundry service pscommand."OPENAI_API_KEY".