Install
Install the GraphJin CLI and scaffold a local project.
Install the CLI
Use the install script when you want the native CLI binary:
curl -fsSL https://graphjin.com/install.sh | bash
graphjin versionThe website serves the script at /install.sh; the build syncs it from the repository root before publishing.
Other common development paths:
graphjin serve --demo
brew install dosco/graphjin/graphjin
go install github.com/dosco/graphjin/cmd/graphjin@latestgraphjin serve --demo is the fastest smoke test - with no --path it extracts the built-in SaaS ops demo (SQLite, no Docker) to ./graphjin-demo and boots it: schema, seeded data, saved queries, workflows, and (with a model key in ./.env) the built-in agent. The other demo verticals
run from a repo clone via --path examples/<name>.
Scaffold a project
graphjin serve new my-api
cd my-api
graphjin serveThe generated dev.yml and agentic.yml deliberately omit feature toggles:
their mode defaults provide managed artifacts, watches, the built-in agent,
stateful MCP HTTP, and the primitive MCP tools. prod.yml remains opt-in.
The scaffold also includes a database connection section, saved-query
directories, and source-mode templates.
TestCmdNewWritesAgenticAndSourcesTemplates
cmd/cmd_new_test.go:14TestTemplatesDecodeAsConfig
cmd/cmd_new_test.go:83The scaffold includes environment-specific config files. Use dev.yml for local work, prod.yml for locked-down deployments, and agentic.yml when MCP/catalog/security surfaces are the main interface.
The generated dev.yml sets mcp.allow_config_updates: true, so a scaffolded project is configurable from your AI IDE on day one — ask for a database connection or a new role and GraphJin writes it back to dev.yml. See Configure GraphJin from your AI IDE
.
Connect an AI client
The shortest path needs nothing running — no server, no Docker, no config file, no model key:
claude mcp add graphjin -- graphjin mcp --demo
codex mcp add graphjin -- graphjin mcp --demographjin mcp --demo extracts the built-in SaaS ops demo to ./graphjin-demo and serves MCP over stdio. Your IDE’s own model does the reasoning.
To connect to a GraphJin you are already running:
graphjin mcp add codex
graphjin mcp add claudeStart the server first — this path is HTTP-only and sends a real MCP initialize probe, so it stops if nothing answers. Defaults are client codex, server http://localhost:8080, and project scope.
For hosted GraphJin, point the MCP client at the HTTP endpoint:
codex mcp add graphjin --url https://graphjin.example.com/api/v1/mcp