Documentation
¶
Overview ¶
Command embed-host is a minimal application that embeds AI Studio: it signs users in with its own (deliberately trivial) login page, serves Studio under /ai-studio, and lets Studio provision and authorise the users it vouches for. It exists to show the pkg/studio wiring and to try embedded mode by hand; see pkg/studio/README.md.
go run ./examples/embed-host -addr :8090 TYK_AI_LICENSE=... go run -tags enterprise ./examples/embed-host # Enterprise Edition
Then open http://localhost:8090/, sign in as "admin" (a Studio administrator) or any other name (a regular user), and follow the link into Studio. The frontend must be built first (npm run build in ui/admin-frontend), as for the standalone binary; or build with -tags studio_noui and pass -ui with the unpacked tyk-ai-studio-ui release tarball, as a host importing Studio as a module does.