Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 2.36 KB

File metadata and controls

86 lines (60 loc) · 2.36 KB

Getting Started

This guide gets KnowledgeOps Agent running locally with Docker Compose and verifies the most important runtime surfaces.

Prerequisites

  • JDK 17+ if you plan to run the backend outside Docker.
  • Docker and Docker Compose.
  • An OpenAI-compatible model endpoint and API key.

Start the Full Stack

git clone https://github.com/however-yir/knowledgeops-agent.git
cd knowledgeops-agent
./scripts/demo.sh

The demo script creates a gitignored .env.demo file when missing, starts the Docker Compose stack, waits for API/web health checks, and runs a smoke test.

make demo

Use make demo when you prefer Make targets.

Verify Startup

curl http://localhost:8080/actuator/health
curl http://localhost:8080/actuator/prometheus

Expected local surfaces:

Surface URL
Frontend console http://localhost:8088
Backend API http://localhost:8080
Swagger UI http://localhost:8080/swagger-ui/index.html
RabbitMQ console http://localhost:15672

Authenticate

The local development seed includes a demo administrator API key. Use the seeded value from .env.example or the frontend authentication card.

curl -X POST http://localhost:8080/auth/token \
  -H "X-API-Key: <local-demo-api-key>" \
  -H "X-Tenant-Id: default"

Use the returned JWT as Authorization: Bearer <token> for protected routes. The API key can also be sent directly with X-API-Key in local evaluation flows.

Try a Chat Request

curl "http://localhost:8080/ai/chat?prompt=hello&chatId=demo-chat" \
  -H "X-API-Key: <local-demo-api-key>" \
  -H "X-Tenant-Id: default"

Shut Down

./scripts/demo.sh down

Use docker compose down -v only when you intentionally want to remove local volumes.

Demo Script Commands

./scripts/demo.sh verify
./scripts/demo.sh logs
./scripts/demo.sh down

Use DEMO_RESET=1 ./scripts/demo.sh when you intentionally want to remove demo volumes before startup.

Next Steps