June 25, 2025

Builders Challenge - Agents 101

Builders Challenge - Agents 101

We’re thrilled to launch the Nosana Builder Challenge, a developer-focused contest designed to push the boundaries of AI model deployment on the Nosana Network.

Nosana Builders Challenge: Agent-101

The main goal of this Nosana Builders Challenge to teach participants to build and deploy agents. This first step will be in running a basic AI agent and giving it some basic functionality. Participants will add a tool, for the tool calling capabilities of the agent. These are basically some TypeScript functions, that will, for example, retrieve some data from a weather API, post a tweet via an API call, etc.

Mastra

For this challenge we will be using Mastra to build our tool.

Mastra is an opinionated TypeScript framework that helps you build AI applications and features quickly. It gives you the set of primitives you need: workflows, agents, RAG, integrations, and evals. You can run Mastra on your local machine, or deploy to a serverless cloud.

Required Reading

We recommend reading the following sections to get started with how to create an Agent and how to implement Tool Calling.

Get Started

To get started run the following command to start developing: We recommend using pnpm, but you can try npm, or bun if you prefer.

pnpm install
pnpm run dev

Assignment

Challenge Overview

Welcome to the Nosana AI Agent Hackathon! Your mission is to build and deploy an AI agent on Nosana. While we provide a weather agent as an example, your creativity is the limit. Build agents that:

Beginner Level:

  • Simple Calculator: Perform basic math operations with explanations
  • Todo List Manager: Help users track their daily tasks

Intermediate Level:

  • News Summarizer: Fetch and summarize latest news articles
  • Crypto Price Checker: Monitor cryptocurrency prices and changes
  • GitHub Stats Reporter: Fetch repository statistics and insights

Advanced Level:

  • Blockchain Monitor: Track and alert on blockchain activities
  • Trading Strategy Bot: Automate simple trading strategies
  • Deploy Manager: Deploy and manage applications on Nosana

Or any other innovative AI agent idea at your skill level!

Getting Started

  1. Fork the Nosana Agent Challenge to your GitHub account
  2. Clone your fork locally
  3. Install dependencies with pnpm install
  4. Run the development server with pnpm run dev
  5. Build your agent using the Mastra framework

How to build your Agent

Here we will describe the steps needed to build an agent.

Folder Structure

Provided in this repo, there is the Weather Agent. This is a fully working agent that allows a user to chat with an LLM, and fetches real time weather data for the provided location.

There are two main folders we need to pay attention to:

In src/mastra/agents/weather-agent/ you will find a complete example of a working agent. Complete with Agent definition, API calls, interface definition, basically everything needed to get a full fledged working agent up and running. In src/mastra/agents/your-agents/ you will find a bare bones example of the needed components, and imports to get started building your agent, we recommend you rename this folder, and it’s files to get started.

Rename these files to represent the purpose of your agent and tools. You can use the Weather Agent Example as a guide until you are done with it, and then you can delete these files before submitting your final submission.

As a bonus, for the ambitious ones, we have also provided the src/mastra/agents/weather-agent/weather-workflow.ts file as an example. This file contains an example of how you can chain agents and tools to create a workflow, in this case, the user provides their location, and the agent retrieves the weather for the specified location, and suggests an itinerary.

LLM-Endpoint

Agents depend on an LLM to be able to do their work.

Running Your Own LLM with Ollama

The default configuration uses a local Ollama LLM. For local development or if you prefer to use your own LLM, you can use Ollama to serve the lightweight qwen2.5:1.5b mode.

Installation & Setup:

  1. Install Ollama :

  2. Start Ollama service:

ollama serve
  1. Pull and run the qwen2.5:1.5b model:
ollama pull qwen2.5:1.5b
ollama run qwen2.5:1.5b
  1. Update your .env file

There are two predefined environments defined in the .env file. One for local development and another, with a larger model, qwen2.5:32b, for more complex use cases.

Why qwen2.5:1.5b?

  • Lightweight (only ~1GB)
  • Fast inference on CPU
  • Supports tool calling
  • Great for development and testing

Do note qwen2.5:1.5b is not suited for complex tasks.

The Ollama server will run on http://localhost:11434 by default and is compatible with the OpenAI API format that Mastra expects.

Testing your Agent

You can read the Mastra Documentation: Playground to learn more on how to test your agent locally. Before deploying your agent to Nosana, it’s crucial to thoroughly test it locally to ensure everything works as expected. Follow these steps to validate your agent:

Local Testing:

  1. Start the development server with pnpm run dev and navigate to http://localhost:8080 in your browser
  2. Test your agent’s conversation flow by interacting with it through the chat interface
  3. Verify tool functionality by triggering scenarios that call your custom tools
  4. Check error handling by providing invalid inputs or testing edge cases
  5. Monitor the console logs to ensure there are no runtime errors or warnings

Docker Testing: After building your Docker container, test it locally before pushing to the registry:

# Build your container
docker build -t yourusername/agent-challenge:latest .

# Run it locally with environment variables
docker run -p 8080:8080 --env-file .env yourusername/agent-challenge:latest

# Test the containerized agent at http://localhost:8080

Ensure your agent responds correctly and all tools function properly within the containerized environment. This step is critical as the Nosana deployment will use this exact container.

Submission Requirements

1. Code Development

  • Fork this repository and develop your AI agent
  • Your agent must include at least one custom tool (function)
  • Code must be well-documented and include clear setup instructions
  • Include environment variable examples in a .env.example file

2. Docker Container

  • Create a Dockerfile for your agent
  • Build and push your container to Docker Hub or GitHub Container Registry
  • Container must be publicly accessible
  • Include the container URL in your submission
Build, Run, Publish

Note: You’ll need an account on Dockerhub


# Build and tag
docker build -t yourusername/agent-challenge:latest .

# Run the container locally
docker run -p 8080:8080 yourusername/agent-challenge:latest

# Login
docker login

# Push
docker push yourusername/agent-challenge:latest

3. Nosana Deployment

  • Deploy your Docker container on Nosana
  • Your agent must successfully run on the Nosana network
  • Include the Nosana job ID or deployment link
Nosana Job Definition

We have included a Nosana job definition at <./nos_job_def/nosana_mastra.json>, that you can use to publish your agent to the Nosana network.

A. Deploying using @nosana/cli

  • Edit the file and add in your published docker image to the image property. "image": "docker.io/yourusername/agent-challenge:latest"
  • Download and install the @nosana/cli
  • Load your wallet with some funds
    • Retrieve your address with: nosana address
    • Go to our Discord and ask for some NOS and SOL to publish your job.
  • Run: nosana job post --file nosana_mastra.json --market nvidia-3060 --timeout 30
  • Go to the Nosana Dashboard to see your job

B. Deploying using the Nosana Dashboard

  • Make sure you have https://phantom.com/, installed for your browser.
  • Go to our Discord and ask for some NOS and SOL to publish your job.
  • Click the Expand button, on the Nosana Dashboard
  • Copy and Paste your edited Nosana Job Definition file into the Textarea
  • Choose an appropriate GPU for the AI model that you are using
  • Click Deploy

4. Video Demo

  • Record a 1-3 minute video demonstrating:
    • Your agent running on Nosana
    • Key features and functionality
    • Real-world use case demonstration
  • Upload to YouTube, Loom, or similar platform

5. Documentation

  • Update this README with:
    • Agent description and purpose
    • Setup instructions
    • Environment variables required
    • Docker build and run commands
    • Example usage

Submission Process

  1. Complete all requirements listed above
  2. Commit all of your changes to the main branch of your forked repository
    • All your code changes
    • Updated README
    • Link to your Docker container
    • Link to your video demo
    • Nosana deployment proof
  3. Social Media Post: Share your submission on X (Twitter)
    • Tag @nosana_ai
    • Include a brief description of your agent
    • Add hashtag #NosanaAgentChallenge
  4. Finalize your submission on the https://earn.superteam.fun/agent-challenge page
  • Remember to add your forked GitHub repository link
  • Remember to add a link to your X post.

Judging Criteria

Submissions will be evaluated based on:

  1. Innovation (25%)

    • Originality of the agent concept
    • Creative use of AI capabilities
  2. Technical Implementation (25%)

    • Code quality and organization
    • Proper use of the Mastra framework
    • Efficient tool implementation
  3. Nosana Integration (25%)

    • Successful deployment on Nosana
    • Resource efficiency
    • Stability and performance
  4. Real-World Impact (25%)

    • Practical use cases
    • Potential for adoption
    • Value proposition

Prizes

We’re awarding the top 10 submissions:

  • 🥇 1st: $1,000 USDC
  • 🥈 2nd: $750 USDC
  • 🥉 3rd: $450 USDC
  • 🏅 4th: $200 USDC
  • 🔟 5th–10th: $100 USDC

All prizes are paid out directly to participants on SuperTeam

Resources

Support

Important Notes

  • Ensure your agent doesn’t expose sensitive data
  • Test thoroughly before submission
  • Keep your Docker images lightweight
  • Document all dependencies clearly
  • Make your code reproducible
  • You can vibe code it if you want 😉
  • Only one submission per participant
  • Submissions that do not compile, and do not meet the specified requirements, will not be considered
  • Deadline is: 9 July 2025, 12.01 PM
  • Announcement will be announced about one week later, stay tuned for our socials for exact date

Don’t Miss Nosana Builder Challenge Updates

Good luck, builders! We can’t wait to see the innovative AI agents you create for the Nosana ecosystem.

Happy Building!

Stay Updated with Nosana

Get the latest insights on AI infrastructure, GPU launches, and network innovations — all in one place

Catch Up on Nosana's Recent Blogs

Run your AI jobs across a decentralized GPU grid. No lock-ins, no downtime, no inflated cloud bills just pure compute power, when you need it.

The New Nosana Experience Is Live
March 13, 2026 |

The New Nosana Experience Is Live

Today marks a major step forward for Nosana.

Empowering African Languages with AI: How Christex and Geneline-X Use Nosana to Build Inclusive Voice Models
March 5, 2026 |

Empowering African Languages with AI: How Christex and Geneline-X Use Nosana to Build Inclusive Voice Models

Artificial intelligence is reshaping education, communication, and economic opportunity, but only for the languages and communities it supports.

Nosana Grants Program Welcomes AiMo Network
March 3, 2026 |

Nosana Grants Program Welcomes AiMo Network

Nosana is pleased to welcome AiMo Network as an official Nosana Grantee through the Nosana Grants Program.

Nosana Monthly - February Edition
March 2, 2026 |

Nosana Monthly - February Edition

From launching the Nosana Learning Hub, to expanding real GPU supply through OpenGPU, rolling out infinite restart strategies by default, and partnering with Sallar and Alio, the Nosana GPU Marketplace is scaling across infrastructure, tooling, and ecosystem integrations.

Nosana 🤝 OpenGPU: Expanding Access to AI Compute
February 5, 2026 |

Nosana 🤝 OpenGPU: Expanding Access to AI Compute

The infrastructure behind artificial intelligence is changing rapidly. As demand for GPU power continues to rise, so does the need for more open, efficient, and accessible computing solutions.

🚀 January on Nosana: Milestones, Momentum & What’s Next
January 30, 2026 |

🚀 January on Nosana: Milestones, Momentum & What’s Next

January was one of those months where you pause for a second, look at the numbers, the people, the product and realize just how much ground has been covered.

December Recap: Closing the Year in Motion
December 30, 2025 |

December Recap: Closing the Year in Motion

December didn’t just close the year, it validated the network! Real GPU workloads, builders shipping in production, and milestones that matter!

Introducing @nosana/kit, the comprehensive 2.0 toolchain for Nosana
December 23, 2025 |

Introducing @nosana/kit, the comprehensive 2.0 toolchain for Nosana

Comprehensive toolchain for managing jobs, markets, runs, and protocol operations on the Nosana compute network.

Nosana 2025: From Testnets to Real-World Compute
December 23, 2025 |

Nosana 2025: From Testnets to Real-World Compute

In 2025, Nosana reached a point of maturity where experimentation gave way to production and decentralized compute shifted from an emerging idea into dependable infrastructure.

The Heart of Nosana: Nosvember 2025 Recap
December 18, 2025 |

The Heart of Nosana: Nosvember 2025 Recap

As the dust settles on another unforgettable Nosvember, it’s clear once again: the Nosana community is the heart of everything we do.

The Nosana Grants Program: Fueling the Next Wave of AI Builders, Vibers, and Dreamers
December 10, 2025 |

The Nosana Grants Program: Fueling the Next Wave of AI Builders, Vibers, and Dreamers

Access $5K-$50K in funding, compute credits, and decentralized GPU infrastructure to build the next generation of AI products.

Agent 102 Recap: MCP, Mastra, and the Next Wave of AI Builders
December 4, 2025 |

Agent 102 Recap: MCP, Mastra, and the Next Wave of AI Builders

Agent 102 our third Builders’ Challenge, pushed the bar higher and our builders cleared it with style.

Nosana Monthly - November Edition
December 1, 2025 |

Nosana Monthly - November Edition

A month of community, builders, and next-gen AI.

Visual Command Center: Managing Deployments with Nosana's Dashboard
November 20, 2025 |

Visual Command Center: Managing Deployments with Nosana's Dashboard

Part 2 of our deployment series: Discover how our new dashboard makes managing distributed deployments as intuitive as clicking a button.

Nosana’s Spare GPU Capacity Is Now Powering Scientific Research
November 12, 2025 |

Nosana’s Spare GPU Capacity Is Now Powering Scientific Research

Nosana’s spare GPU power now fuels Folding@Home, advancing global biomedical research and showcasing the real-world impact of decentralized compute.

Nosana Monthly - October Edition
November 10, 2025 |

Nosana Monthly - October Edition

This month has marked a major step in Nosana’s journey. We’ve expanded into new regions, launched new tooling, partnered with leading ecosystems, and brought hundreds of builders into the decentralized AI future.

From Proposal to Vote: How NNP-0001 Will Be Decided
November 5, 2025 |

From Proposal to Vote: How NNP-0001 Will Be Decided

This post explains timeline, eligibility, and the voting procedure so every holder knows how to participate.

Nosvember Games: A month of celebration for the Nosana Community!
November 3, 2025 |

Nosvember Games: A month of celebration for the Nosana Community!

With November ahead, we’re bringing back Nosvember — a full month dedicated to the Nosana community.

From Yield to Growth: Aligning NOS Rewards with Real Usage!
October 22, 2025 |

From Yield to Growth: Aligning NOS Rewards with Real Usage!

The first Nosana Network Proposal NNP-001 Tokenomics is live. The proposal has a simple goal to make NOS rewards work harder by funding what grows the network.

Elevating the Deployment Experience: Introducing Nosana's New Deployment Manager
October 16, 2025 |

Elevating the Deployment Experience: Introducing Nosana's New Deployment Manager

This is the first article in our technical series exploring how we're revolutionizing deployments on the Nosana network.

Builders Challenge - Agents 102
October 10, 2025 |

Builders Challenge - Agents 102

Build intelligent AI agents with Mastra and deploy them on Nosana's decentralized network. Compete for $3,000 USDC in prizes!

Nosana Expands Across Asia: Powering the Future of AI Infrastructure
October 1, 2025 |

Nosana Expands Across Asia: Powering the Future of AI Infrastructure

Asia: the fastest-growing hub for AI and Web3

How We're Helping AI Startups Cut Costs by 67% With Open-Source Models
August 7, 2025 |

How We're Helping AI Startups Cut Costs by 67% With Open-Source Models

Nosana helps AI startups dramatically reduce operational costs by replacing expensive proprietary AI models with optimized open-source alternatives.

Agent 101 Recap: How Builders Took on the Nosana Challenge
July 18, 2025 |

Agent 101 Recap: How Builders Took on the Nosana Challenge

Agent 101 was our second Builders’ Challenge, a call to action for devs to build smart, scalable AI agents that run on Nosana’s decentralized GPU network. And the community more than delivered.

Builders Challenge - Create a Nosana Template
March 31, 2025 |

Builders Challenge - Create a Nosana Template

This is your chance to showcase your skills, gain visibility, learn new tools — and compete for over 3,000 USDC in prizes**

Introducing Swapping and Priority Fees
February 11, 2025 |

Introducing Swapping and Priority Fees

Introducing Nosana's newest features, in-Dashboard token swapping and dynamic priority fees.

Nosana's GPU Marketplace is Open to the Public
January 14, 2025 |

Nosana's GPU Marketplace is Open to the Public

Today marks a major milestone for Nosana as we officially open our GPU Marketplace to the public.

2024 at Nosana: A Year In Review
December 27, 2024 |

2024 at Nosana: A Year In Review

With the Mainnet launch just weeks away, it feels like the right time to reflect on the milestones that have defined 2024.

Road to Mainnet: Nosana's Next Chapter
December 23, 2024 |

Road to Mainnet: Nosana's Next Chapter

The Nosana Test Grid is now production-ready, paving the way for the upcoming launch of the Nosana Mainnet.

Test Grid Phase 3: final steps to mainnet
September 30, 2024 |

Test Grid Phase 3: final steps to mainnet

Today Nosana’s Test Grid has successfully transitioned to its third and final phase. This is an exciting time, as the final core components for Nosana’s Main Grid will be rolled out and tested.

LLM Benchmarking: Cost Efficient Performance
September 13, 2024 |

LLM Benchmarking: Cost Efficient Performance

Explore Nosana's latest benchmarking insights, revealing a compelling comparison between consumer-grade and enterprise GPUs in cost-efficient LLM inference performance.

Nosana Team is Heading to Singapore for Solana Breakpoint and Token2049
September 11, 2024 |

Nosana Team is Heading to Singapore for Solana Breakpoint and Token2049

The Nosana team is heading to Singapore for Solana Breakpoint and Token2049 to connect with builders and innovators in the DePIN and AI sectors.

LLM Benchmarking on the Nosana grid
August 5, 2024 |

LLM Benchmarking on the Nosana grid

In this article, we will go over the required fundamentals to understand how benchmarking works, and then show how we can use the results of the benchmarks to create fair markets.

Nosana Staking Program Update
May 21, 2024 |

Nosana Staking Program Update

To ensure the network's continued success and long-term potential, we're implementing a key update to our staking program.

Nosana at Solana Hacker House Dubai 2024
April 9, 2024 |

Nosana at Solana Hacker House Dubai 2024

Our core team is heading to Solana Hacker House Dubai edition to connect with builders and innovators in the DePIN and AI sector.

Test Grid Phase 2 Update
April 3, 2024 |

Test Grid Phase 2 Update

An update on our plans for Test Grid Phase 2

How AI Inference Drives Business Applications in 2024
March 8, 2024 |

How AI Inference Drives Business Applications in 2024

AI inference bridges the gap between complex AI models and their practical use cases.

Testing the First GPU Grid for AI Inference
February 5, 2024 |

Testing the First GPU Grid for AI Inference

Nosana has successfully tested the first decentralized GPU grid developed and customized for AI inference workloads.

Exploring the Distinctions Between GPUs and CPUs
January 30, 2024 |

Exploring the Distinctions Between GPUs and CPUs

Initially devised for graphics rendering in gaming and animation, GPUs now find applications well beyond their initial scope.

An In-depth Exploration of AI Inference: From Concept to Real-world Applications
January 24, 2024 |

An In-depth Exploration of AI Inference: From Concept to Real-world Applications

In this third chapter of the Nosana Edu series, we'll break down how AI inference works, explore its fundamental concepts, and discuss how it's impacting businesses and industries.

Nosana's Strategic APY Adjustment for Balanced Growth and Stability
January 12, 2024 |

Nosana's Strategic APY Adjustment for Balanced Growth and Stability

Aligning Long-term Success with Sustainable Rewards

Deep Learning Unveiled: Navigating Training, Inference, and the GPU Shortage Dilemma
January 11, 2024 |

Deep Learning Unveiled: Navigating Training, Inference, and the GPU Shortage Dilemma

Right now this field is facing a big problem: there aren't enough GPUs

Nosana 2023: Pioneering AI and GPU Computing
January 2, 2024 |

Nosana 2023: Pioneering AI and GPU Computing

With the demand for AI inference showing no signs of slowing, our commitment in 2023 centered on scaling up new capacity and expanding our offerings

Deep Learning Demystified
December 28, 2023 |

Deep Learning Demystified

A Comprehensive Guide to GPU-Accelerated Data Science

Navigating a Sustainable Future in Tech: The Nosana Initiative
December 15, 2023 |

Navigating a Sustainable Future in Tech: The Nosana Initiative

Addressing the GPU Shortage with a Sustainable Lens

Test Grid Phase 1: Accelerating the AI and GPU Computing Revolution
December 1, 2023 |

Test Grid Phase 1: Accelerating the AI and GPU Computing Revolution

The launch of our Test Grid represents a significant moment in AI and GPU-compute technology

Unlock the Earning Potential of Your GPU: How to Monetize Your Hardware with Nosana
November 28, 2023 |

Unlock the Earning Potential of Your GPU: How to Monetize Your Hardware with Nosana

If you have an underutilized GPU gathering dust, it's time to turn it into a source of revenue

Nosana Launches Incentivized Public Test Grid with 3 Million $NOS
November 17, 2023 |

Nosana Launches Incentivized Public Test Grid with 3 Million $NOS

A multi-phase program that will further power the AI revolution.

Nosana's $NOS Rewards Farm on Raydium!
November 15, 2023 |

Nosana's $NOS Rewards Farm on Raydium!

Are you ready to expand your $NOS stack? Let's get started!

BreakPoint 2023: Bridging the Global GPU Shortage
November 9, 2023 |

BreakPoint 2023: Bridging the Global GPU Shortage

We're building the world's largest decentralized compute grid by directly connecting GPUs and AI users

Nosana's New Direction: AI Inference
October 13, 2023 |

Nosana's New Direction: AI Inference

GPU-compute grid for AI inference