Skip to content
@greennode-samples

GreenNode Samples

Official GreenNode code samples: AI agents and MCP on AgentBase, VKS, vServer, vDB, storage and networking — deployable examples with tests and CI.

GreenNode Samples

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.

Browse by product

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 index

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

Find a sample by scenario

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

How the AgentBase pieces fit together

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)

Getting started

  1. Sign in to the GreenNode console: aiplatform.console.vngcloud.vn.
  2. Pick a repository from the index above and follow its README. Every sample runs locally first, then deploys to your own GreenNode account.
  3. Read the platform documentation at docs.greennode.ai and the tutorials at greennode.ai/tutorial.

Conventions

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.example and no secrets in the repository;
  • a "tested on" note stating the real GreenNode infrastructure the sample was verified on;
  • MIT license.

Contributing

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.

Links

Popular repositories Loading

  1. sample-mariadb-galera-maxscale sample-mariadb-galera-maxscale Public

    MariaDB Galera cluster (3 nodes) behind MaxScale read/write split in Docker Compose, with a failover test that proves it. Verified on GreenNode vServer.

    Shell 1

  2. sample-travel-buddy sample-travel-buddy Public

    Travel assistant AI agent with a web UI — long-term memory (CUSTOM + SEMANTIC strategies), MCP Gateway + Tavily web search, per-agent Policy Group, network diagrams. Runs on GreenNode AgentBase.

    Python

  3. sample-zalo-restaurant sample-zalo-restaurant Public

    Restaurant booking chatbot on Zalo — custom MCP server as a separate AgentBase runtime, Private MCP Gateway, returning-guest memory, real Zalo Bot Platform webhook and web simulator.

    Python

  4. sample-mcp-stock-server sample-mcp-stock-server Public

    Vietnam stock market MCP server (24hMoney, 13 tools) with fail-closed API-key auth — one image deploys to AgentBase Agent Runtime, vServer/VKS in your VPC, or on-premises.

    Python

  5. sample-byo-agent-mcp-gateway sample-byo-agent-mcp-gateway Public

    Bring your own agent: an agent running outside GreenNode AgentBase calls MCP tools through the MCP Gateway with IAM or JWT inbound auth — CLI, LangGraph agent, Claude Desktop or Cursor.

    Python

  6. sample-onprem-mcp-vpn sample-onprem-mcp-vpn Public

    Internal ERP/HR MCP server in your data center, reached by GreenNode AgentBase through VPN Site-to-Site (IPsec, strongSwan) and a Private MCP Gateway with Route CIDRs — firewall rules and lab guide…

    Python

Repositories

Showing 10 of 12 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…