AQI AIAQI AI Intelligence
⌕
Official documentationNot tested by AQI AI

Set up your first local chat endpoint

Verify local inference and its API before connecting an agent.

Last checked:
A quick glossary

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

  1. Choose the official Ollama or LM Studio installer and record the version.

  2. Choose a specifically licensed model fitting your hardware and record its ID and quantization.

  3. Prepare models and runtimes first, then retest offline with synthetic text. Model discovery, downloads and updates may need networking.

  4. Ollama: set OLLAMA_NO_CLOUD=1, restart, and check for Ollama cloud disabled: true in its logs.

  5. Check agents, MCP, web search and remote APIs separately. These steps are not an isolation test of your device by this site.

  6. Complete a local conversation, then enable an API bound to the local machine.

  7. 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, done

Validation 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

  1. Ollama official documentation ↗

    docs.ollama.com · · Official documentation

  2. LM Studio official documentation ↗

    lmstudio.ai · · Official documentation

  3. Ollama local model list ↗

    docs.ollama.com · · Official documentation

  4. Ollama · Generate API ↗

    docs.ollama.com · · Official documentation

  5. Ollama FAQ · local-only ↗

    docs.ollama.com · · Official documentation

  6. LM Studio · offline operation ↗

    lmstudio.ai · · Official documentation

Connected resources

Local runtimeCost: Free software; check license and compute costs

Ollama

A local model runtime and API tool supporting a subset of OpenAI endpoints.

Official documentation
Local runtimeCost: Free software; check license and compute costs

LM Studio

A desktop local-model tool with compatible Chat Completions and Responses endpoints.

Official documentation
Research guideCost: Not verified

Qwen3 × LM Studio: your first local chat

From official 4B/8B GGUF to file checks, import preview and first chat. Original guide; not runtime-tested by this site.

Official documentation