# Save tokens with Neon Function templates

DevFeed: [Save tokens with Neon Function templates](<https://devfeed.tech/articles/save-tokens-with-neon-function-templates-121156.md>)

Original publisher: [Read original article](<https://neon.com/blog/save-tokens-with-neon-function-templates>)

Author: Dominik Koch

Published: 2026-11-05T12:00:00Z

Content type: release

Language: en

Sources: [Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [function as a service](<https://devfeed.tech/topics/function-as-a-service.md>), [function calling](<https://devfeed.tech/topics/function-calling.md>), [self-service](<https://devfeed.tech/topics/self-service.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [code](<https://devfeed.tech/tags/code.md>), [function](<https://devfeed.tech/tags/function.md>), [neon](<https://devfeed.tech/tags/neon.md>), [product](<https://devfeed.tech/tags/product.md>), [registry](<https://devfeed.tech/tags/registry.md>), [save](<https://devfeed.tech/tags/save.md>), [skip](<https://devfeed.tech/tags/skip.md>), [template](<https://devfeed.tech/tags/template.md>), [templates](<https://devfeed.tech/tags/templates.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

## AI overview

Neon Function Registry templates give agents working Neon Function code, pinned dependencies, and a README with required services and an example request, reducing the need to research setup before coding. The collection includes examples using Chat SDK, Mastra, TanStack AI, Context.dev, Postgres, AI Gateway, Object Storage, and Managed Better Auth. Agents can list template IDs with `neon functions templates list` and install without prompts using `neon functions new <id> -y`; creating a template does not require a linked project or signed-in CLI. Deployment requires Neon CLI 8.11.0 or later and a directory linked to a Neon project. Setup may involve installing dependencies, adding services, defining environment variables, and deploying with `--env .env.local` when templates use their own variables. Installed files remain editable and are not overwritten by template updates. Most templates do not authenticate callers, so authentication should be added before sharing URLs that call paid services.

## Source excerpt

Agents can already bootstrap a Neon Function on their own, but they spend tokens researching best practices first. A template from the Neon Function Registry lets them skip that and start from working code.