Model service endpoints: connect and secure --base-url
Model service endpoints are the recommended way to run Open-AutoGLM without local GPU hardware. This guide covers how to connect via --base-url and how to keep the endpoint secure.

Why endpoints are recommended
Endpoints reduce setup time and allow you to focus on evaluating the agent:
- No local GPU required
- Centralized updates
- Easier to scale and monitor
Connecting with --base-url
The upstream English README lists supported providers and their model IDs. For a local service started with the upstream multilingual configuration, run this from the Open-AutoGLM checkout:
python scripts/check_deployment_en.py --base-url http://localhost:8000/v1 --model autoglm-phone-9b-multilingualA successful check prints an inference result. For a hosted service, use the provider’s exact base URL, model name and authentication requirements. See the hosted multilingual first-run example for the matching Z.AI settings.
Selecting an endpoint
Prefer endpoints that provide:
- Versioned model metadata
- Stable latency
- Clear access controls
Document the endpoint version to keep evaluations reproducible.
Security basics
Never expose endpoints publicly without protection. Minimum safeguards:
- HTTPS/TLS
- Token‑based authentication
- IP allowlists (if available)
- Rate limiting
Authentication patterns
Common patterns include:
- Static API tokens
- OAuth or short‑lived tokens
- Signed requests with custom headers
Never embed tokens in public logs or client‑side code.
Token rotation
Rotate credentials regularly:
- Revoke unused tokens.
- Update stored secrets in your CI or runtime.
- Document rotation dates for audit purposes.
Logging and monitoring
Track:
- Request counts and latency
- Model version and configuration
- Error rates and timeouts
These metrics help you debug and compare runs.
Access logs
Keep access logs separate from model output logs. This makes it easier to detect suspicious activity without exposing sensitive data.
Handling failures
If the endpoint is down:
- Fail fast and notify the user.
- Provide a retry plan with backoff.
- Allow switching to a backup endpoint.
Pre‑flight testing
Match service details
Use a base URL, model identifier and credential from the same provider.
Verify access
Confirm the provider accepts a minimal request before running a multi-step task.
Try one screen
Run a small test only after both the model check and phone connection pass.
Before a full evaluation run:
- Run the upstream model check with the correct base URL and model ID. A response from the bare URL alone does not verify model access.
- Test one low‑risk action.
- Verify logs capture the request and response time.
Safety note
Endpoint access is a privilege. Treat it as sensitive and avoid sharing URLs or tokens in public logs.
Next steps
- For local fallback, see low‑VRAM options.
- For Docker deployment, see Docker deployment checklist.