Official code samples and examples for GreenNode — the sovereign AI cloud: AI agents, managed Kubernetes, compute, databases, storage and networking.
Every repository is a standalone, deployable example. Each one has a quick start that runs locally, a step-by-step console setup guide, tests and CI. All samples are released under the MIT license.
GreenNode is the former VNG Cloud, now operating as GreenNode. Older links may still point to
vngcloud.vn.
| Product | What the samples show |
|---|---|
| AI Platform · AgentBase | Build, deploy and connect AI agents and MCP servers: agent runtime (LangGraph), long-term memory, the MCP Gateway with IAM/JWT/OAuth auth, Policy Groups, multi-agent A2A, enterprise SSO. 8 samples |
| Compute · vServer | Measure real NVMe volume throughput and IOPS, and pick the right volume type for your workload. 1 sample |
| Kubernetes · VKS | Install the NVIDIA GPU Operator and HAMi, and share one GPU between pods with hard VRAM limits. 1 sample |
| Databases · vDB | Production topologies you can prove: Redis HA with Sentinel, MariaDB Galera behind MaxScale. 2 samples |
| Networking · VPC / VPN | Reach an on-premises service over VPN Site-to-Site through a Private MCP Gateway. 1 sample |
| Storage · block, file, object | Samples in progress |
| Model as a Service (MaaS) | Samples in progress |
| Observability · vMonitor | Samples in progress |
| Security · IAM, GreenNode IDP | Samples in progress |
| Repository | Product | What it demonstrates | Stack |
|---|---|---|---|
| sample-travel-buddy | AgentBase | Travel assistant agent with a web UI: long-term memory (CUSTOM + SEMANTIC strategies), MCP Gateway + Tavily search, Policy Group, network diagrams | Python |
| sample-zalo-restaurant | AgentBase | Restaurant booking chatbot on Zalo: custom MCP server as a separate runtime, Private MCP Gateway, returning-guest memory, real Zalo Bot Platform webhook | Python |
| sample-multi-agent-a2a | AgentBase | Multi-agent orchestrator that delegates in parallel over A2A and calls MCP tools through the gateway | Python |
| sample-enterprise-assistant-oauth | AgentBase | An agent that acts as the signed-in user: OIDC (Keycloak), JWT inbound auth, OAuth 3LO to GitHub, Policy Group conditions, approval of every write | Python |
| sample-mcp-stock-server | AgentBase | Vietnam stock MCP server (24hMoney, 13 tools) with fail-closed API-key auth; one image runs on Agent Runtime, in your VPC or on-premises | Python |
| sample-byo-agent-mcp-gateway | AgentBase | Bring your own agent (outside AgentBase) calling the MCP Gateway with IAM or JWT — CLI, LangGraph, Claude Desktop, Cursor | Python |
| sample-onprem-mcp-vpn | AgentBase · Networking | Internal ERP/HR MCP server in your data center reached over VPN Site-to-Site (IPsec, strongSwan) and a Private MCP Gateway | Python |
| sample-greennode-agentbase-builder-skills | AgentBase | Agent skills that teach coding agents (Claude Code, Codex) to scaffold, deploy and operate on AgentBase | Python |
| sample-vserver-volume-benchmark | vServer | fio sweep for NVMe volumes: measured throughput/IOPS ceilings per volume type, and the common fio mistakes | Shell |
| sample-vks-gpu-hami | VKS | NVIDIA GPU Operator + HAMi in one command, then prove two pods share one GPU with hard VRAM limits | Shell |
| sample-redis-ha-sentinel | vDB | Redis HA: 1 master, N replicas, 3 Sentinels, with a failover test that proves it | Shell |
| sample-mariadb-galera-maxscale | vDB | MariaDB Galera (3 nodes) behind MaxScale read/write split, with a failover test that proves it | Shell |
| I want to… | Start with |
|---|---|
| Build an agent with memory that calls SaaS tools on the Internet | sample-travel-buddy |
| Build a chatbot for Zalo | sample-zalo-restaurant |
| Write my own MCP server and run it on Agent Runtime | sample-mcp-stock-server |
| Run an MCP server in my VPC (vServer / VKS) behind a Private MCP Gateway | sample-mcp-stock-server · sample-zalo-restaurant |
| Reach an MCP server on-premises over VPN or Interconnect | sample-onprem-mcp-vpn |
| Use the MCP Gateway from an agent that does not run on AgentBase | sample-byo-agent-mcp-gateway |
| Compose several agents into one system (agent-to-agent delegation) | sample-multi-agent-a2a |
| Make an agent act as the signed-in enterprise user (SSO, per-user permissions, approvals) | sample-enterprise-assistant-oauth |
| Teach my coding agent (Claude Code, Codex) to build on AgentBase | sample-greennode-agentbase-builder-skills |
| Size an NVMe volume for a database or a log pipeline | sample-vserver-volume-benchmark |
| Share one GPU between several pods on Kubernetes | sample-vks-gpu-hami |
| Run Redis or MariaDB with a real failover | sample-redis-ha-sentinel · sample-mariadb-galera-maxscale |
| Understand how Runtime, LLM, Memory and MCP Gateway connect on the network | sample-travel-buddy/docs/network |
Agent Runtime (LangGraph) ── Memory (strategies / actors)
│
├── LLM (OpenAI-compatible endpoint)
└── MCP Gateway (IAM / JWT inbound auth, Policy Group)
├── connector → MCP SaaS on the Internet (API key / OAuth)
├── connector → MCP server on Agent Runtime
├── connector → MCP server in your VPC (Private gateway)
└── connector → MCP server on-premises (VPN / Interconnect)
- Sign in to the GreenNode console: aiplatform.console.vngcloud.vn.
- Pick a repository from the index above and follow its README. Every sample runs locally first, then deploys to your own GreenNode account.
- Read the platform documentation at docs.greennode.ai and the tutorials at greennode.ai/tutorial.
Every sample in this organization follows the same rules, so you can jump between them:
- a quick start that works locally with Docker or Python, before touching the cloud;
- a step-by-step console setup guide with the exact values to fill in;
- tests that need no credentials (fakes, fixtures, containers), run in CI on every push;
- an
.env.exampleand no secrets in the repository; - a "tested on" note stating the real GreenNode infrastructure the sample was verified on;
- MIT license.
Found a bug, or have an idea for a sample for a product that is not covered yet? Open an issue in the
repository it relates to, or in this organization's .github repository. Pull requests are welcome:
keep the sample minimal, focused on one thing, and runnable without credentials.
- Platform: greennode.ai
- Documentation: docs.greennode.ai
- Tutorials and blog: greennode.ai/tutorial · greennode.ai/blog
- Console: aiplatform.console.vngcloud.vn