Console

LocalAI

Connect LocalAI and configure credentials, models, and API operations.

Create a connection

Select LocalAI in organization or Workspace LLM Integrations. Enter a name and stable slug, then configure the following fields.

FieldRequiredDescription
base_urlRequiredBase URL
api_keyRequiredAPI key

Advanced settings support Custom Host and Custom Headers.

Provide an HTTPS Base URL reachable from the Gateway and an API key. Expose the compatibility API over HTTPS; Ollama can use an HTTPS reverse proxy that validates the API key. Discovery reads /models; use the model names served by that endpoint.

APIs and models

This connection supports the following Gateway operations. Configure Streaming, Tools, Usage, modalities, and limits separately for each model in the catalog.

OperationGateway path
Chat CompletionsPOST /v1/chat/completions
ResponsesPOST /v1/responses
EmbeddingsPOST /v1/embeddings

In model management, fetch models from upstream, select candidates, and confirm capabilities and Credit rates before saving. You can also add models manually.

Publish and call

  1. Grant the target Workspace access to a shared Integration, or create an owned Integration there.
  2. Create a Gateway API key with direct model access, or bind a Policy that routes to this model.
  3. Validate, review, and publish a Release; check that the Gateway has loaded it.
  4. Use GET /v1/models to find model IDs visible to the key, then send a request.

The example uses a direct model reference; replace it with an actual ID visible to the key. SHIELDON_GATEWAY_BASE_URL is the ShieldON URL ending in /v1.

curl "$SHIELDON_GATEWAY_BASE_URL/chat/completions" \
  -H "Authorization: Bearer $SHIELDON_GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "@your-integration/your-model",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 512,
  "stream": false
}'

Check the actual Integration, model, status, and usage in request details.