TokenAI Source-Available License
Version 1.0

Copyright (c) 2024–2026 TokenAI. All rights reserved.

IMPORTANT NOTICE

This is a source-available license. It is not an OSI-approved Open Source
license. The NeuralNode Framework and the original NeuralNode source code are
owned by TokenAI, subject to the rights of third-party components identified in
THIRD_PARTY_NOTICES.md and their respective licenses.

1. Definitions

"Licensor" means TokenAI, the owner of the NeuralNode Framework.

"NeuralNode" or "Software" means the original source code, documentation,
configuration, and other materials in this repository that are identified as
part of the NeuralNode Framework and owned by TokenAI.

"Derivative Work" means a work based on, incorporating, or substantially
modifying the Software, including a fork or a product that incorporates the
core NeuralNode runtime or architecture.

"Competing Framework" means a generally available software framework, runtime,
platform, SDK, or service whose primary purpose is substantially similar to
the primary purpose of NeuralNode, including the orchestration of AI models,
provider abstraction, agents, tools, memory, RAG, or materially similar
capabilities, where NeuralNode or a substantial portion of its code or
architecture is used as a material part of that offering.

2. Limited License Grant

Subject to this License, TokenAI grants you a worldwide, non-exclusive,
non-transferable, royalty-free license to:

  a. view and study the Software;
  b. use the Software for personal, educational, research, and internal
     business purposes;
  c. modify the Software for those purposes; and
  d. create and distribute applications that use the Software, provided that
     the application is not a Competing Framework and all requirements of this
     License are satisfied.

This license does not transfer ownership of the Software or any intellectual
property rights in NeuralNode to you.

3. Attribution and Source Notice

If you use, modify, fork, embed, or distribute the Software or a Derivative
Work, you must clearly and prominently acknowledge NeuralNode and its source
repository in:

  a. the source distribution and its documentation;
  b. a credits, licenses, about, or acknowledgements page in the product; and
  c. the product's administrator-facing documentation or settings page when
     the product has such a page.

The acknowledgement must include substantially the following statement:

  "This product uses NeuralNode, a framework owned by TokenAI."
  "Source: https://github.com/tokenaillc/neuralnode"

You must retain this License, existing copyright notices, and all attribution
notices. You must not remove or obscure the NeuralNode or TokenAI notices.

4. Restrictions

You may not:

  a. create, distribute, host, sell, license, or operate a Competing
     Framework based on or incorporating the Software;
  b. offer the Software itself, or a substantially unmodified version of it,
     as a standalone commercial product or hosted service;
  c. remove, alter, or obscure required attribution, copyright, or license
     notices;
  d. use the names, logos, or trademarks "NeuralNode" or "TokenAI" in a way
     that implies endorsement, sponsorship, partnership, or official status;
  e. represent that a fork or Derivative Work is the official NeuralNode
     project; or
  f. sublicense or relicense the Software under terms that conflict with this
     License.

This License does not prevent you from building an application that uses
NeuralNode as a component, provided that the application is not a Competing
Framework and the attribution requirements are met.

5. Contributions and Pull Requests

TokenAI welcomes bug fixes, documentation improvements, tests, and other
proposals submitted through GitHub issues, forks, or pull requests. A pull
request is a proposal only; it does not become part of NeuralNode unless and
until TokenAI accepts and merges it.

By intentionally submitting a contribution for inclusion in NeuralNode, you
agree that TokenAI may review, modify, combine, license, distribute, and
relicense the contribution as part of NeuralNode under this License or under a
separate commercial or successor license. You represent that you have the
right to submit the contribution and that it does not knowingly violate a
third party's rights.

Submission of a pull request does not give the contributor commit, merge,
release, or administrative access. TokenAI retains sole discretion to accept,
request changes to, reject, close, or remove any contribution.

Contributors must follow CONTRIBUTING.md and any contribution agreement or
Developer Certificate of Origin required by the repository at the time of
submission.

6. Commercial License

TokenAI may grant separate commercial licenses, waivers, or written
permissions for uses restricted by this License. A commercial license may
permit use in a Competing Framework, removal or relocation of attribution,
white-label distribution, or other uses not permitted here. No commercial
permission is granted unless it is signed or expressly issued in writing by
TokenAI.

7. Third-Party Materials

This License applies only to material owned by TokenAI. Third-party libraries,
models, model weights, APIs, datasets, fonts, images, and other materials are
not relicensed by this document and remain subject to their own licenses and
terms. See THIRD_PARTY_NOTICES.md and MODEL_LICENSES.md when present.

8. Trademarks

This License does not grant permission to use TokenAI or NeuralNode trademarks,
logos, or brand assets except for the attribution required by Section 3 and
ordinary factual reference to the Software. Additional use is governed by
TRADEMARKS.md or requires written permission from TokenAI.

9. Termination

The rights granted by this License terminate automatically if you materially
breach this License. Rights may be reinstated if TokenAI gives you written
permission or if the breach is cured within thirty (30) days after written
notice, where cure is possible.

10. Disclaimer and Limitation of Liability

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR
A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT
PERMITTED BY LAW, TOKENAI AND ITS CONTRIBUTORS SHALL NOT BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
ARISING FROM THE SOFTWARE OR THIS LICENSE.

11. Governing Terms

This License is intended to be interpreted under the laws applicable to TokenAI
and the jurisdiction specified in any executed commercial agreement. If any
provision is held unenforceable, the remaining provisions remain in effect.

This License is a draft public distribution license for NeuralNode Source-
Available License Version 1.0 and should be reviewed by qualified legal counsel
before the repository is made public.
