Set up your first local chat endpoint
Verify local inference and its API before connecting an agent.
Models generate and reason. Agents use tools to work on tasks. A harness manages an agent’s environment. MCP connects tools and data. Skills are reusable task guidance.
Before you start
Prerequisites
Prepare a licensed local model and start Ollama first. The Windows PowerShell example below calls only 127.0.0.1:11434. List models, then replace the placeholder with an exact ID from that list. For LM Studio, use its documented address and endpoints instead.
Estimated time
Learner time varies by environment; no measured duration is claimed.
Implementation steps
Choose the official Ollama or LM Studio installer and record the version.
Choose a specifically licensed model fitting your hardware and record its ID and quantization.
Prepare models and runtimes first, then retest offline with synthetic text. Model discovery, downloads and updates may need networking.
Ollama: set OLLAMA_NO_CLOUD=1, restart, and check for Ollama cloud disabled: true in its logs.
Check agents, MCP, web search and remote APIs separately. These steps are not an isolation test of your device by this site.
Complete a local conversation, then enable an API bound to the local machine.
Send a short official API request, record model ID, errors and latency, and avoid private files.
Commands and examples
Not tested by AQI AI
$bfBase = 'http://127.0.0.1:11434'
(Invoke-RestMethod -Uri "$bfBase/api/tags" -TimeoutSec 10).models |
Select-Object name, size
$bfModel = 'REPLACE_WITH_LOCAL_MODEL_ID'
if ($bfModel -eq 'REPLACE_WITH_LOCAL_MODEL_ID') {
throw 'Replace the model ID with a name from the list above.'
}
$bfBody = @{
model = $bfModel
prompt = 'Reply only READY'
stream = $false
} | ConvertTo-Json
$bfReply = Invoke-RestMethod -Method Post -Uri "$bfBase/api/generate" -ContentType 'application/json' -Body $bfBody -TimeoutSec 180
$bfReply | Select-Object model, response, doneValidation checks
- Confirm the request targets localhost and compare UI and API responses.
- When running locally, use an ID from the installed list. Expect a nonempty response and done=true. READY is a test prompt, not guaranteed model behavior; HTTP success does not establish agent or tool compatibility.
Recorded test results
Official documentation reviewed; this site has not run this combination or tested the device.
Common problems
Wrong port, unloaded model, insufficient resources or incorrect model ID.
Cost
Not verified
Price not verified; check software, model, API, hardware and hosting costs separately.
Limits & boundaries
Bind locally only; local execution does not remove model license restrictions.
Permissions & risks
Check agents, MCP, web search and remote APIs separately. These steps are not an isolation test of your device by this site.
Alternatives and next steps
Open-source alternatives may still require paid hardware or model calls.
Prefer public software on existing hardware; API, hardware, electricity and hosting are not guaranteed free.
Original sources
- Ollama official documentation ↗
docs.ollama.com · · Official documentation
- LM Studio official documentation ↗
lmstudio.ai · · Official documentation
- Ollama · Generate API ↗
docs.ollama.com · · Official documentation
- Ollama FAQ · local-only ↗
docs.ollama.com · · Official documentation
- LM Studio · offline operation ↗
lmstudio.ai · · Official documentation