Elastic License 2.0

Acceptance. By using the software, you agree to all of the terms and
conditions below.

Copyright 2026 Okto Labs

1. Grant of License. The licensor grants you a non-exclusive, royalty-free,
worldwide, non-sublicensable, non-transferable license to use, copy,
distribute, make available, and prepare derivative works of the software,
in each case subject to the limitations and conditions below.

2. Limitations. You may not provide the software to third parties as a
hosted or managed service, where the service provides users with access to
any substantial set of the features or functionality of the software.
You may not move, change, disable, or circumvent the license key
functionality in the software, and you may not remove or obscure any
functionality in the software that is protected by the license key.
You may not alter, remove, or obscure any licensing, copyright, or other
notices of the licensor in the software.

3. Patent License. The licensor grants you a license, under any patent
claims the licensor can license, or becomes able to license, to make, have
made, use, sell, offer for sale, import and have imported the software.
However, this license does not cover any patent claims that you cause to be
infringed by modifications or additions to the software. If you or your
company make any written claim that the software infringes or contributes
to infringement of any patent, your patent license for the software granted
under these terms ends immediately. Your company's patent license granted
under these terms also ends immediately if your company makes any written
claim that the software infringes or contributes to infringement of any
patent.

4. Distribution. You may not alter, remove, or obscure any licensing,
copyright, or other notices of the licensor in the software. Any
distribution of the software must include a copy of these terms and
conditions, and anyone who receives the software from you is bound by these
terms and conditions.

5. Notices. You must include a copy of these terms with any distribution of
the software. If you modify the software, you must mark the modifications
clearly and include the date of the modifications.

6. Termination. If you violate these terms, your licenses will terminate
automatically. If the licensor notifies you of your violation, and you cease
all violation of this license no later than 30 days after you receive that
notice, your licenses will be reinstated retroactively. However, if you
violate these terms after the reinstatement, all of your licenses will
terminate permanently.

7. No Other Rights. Except as expressly stated herein, no other rights or
licenses are granted, express or implied.

8. Limitation on Liability. As far as the law allows, the software comes as
is, without any warranty or condition, and the licensor will not be liable
to you for any damages arising out of these terms or the use or nature of
the software, under any kind of legal claim.

9. Definitions.

"Licensor" means Okto Labs and its
affiliates.

"Software" means the software the licensor makes available under these
terms, including any portions, modifications, or derivative works.

"You" means you, individually.

"Your company" means any legal entity, sole proprietorship, or other
organization that you work for, plus all other organizations that control,
are controlled by, or are under common control with that organization. The
term "control" means ownership of substantially all the assets of an entity.

"Your licenses" means the licenses granted to you in Section 1.

"Use" means anything you do with the software in violation of these terms.


Addendum: SaaS, Competing Service, Internal Use, and Attribution
================================================================

This addendum clarifies and supplements Section 2 ("Limitations") of the
Elastic License 2.0. In case of conflict between the body of the license
and this addendum, this addendum controls.

Okto Grafx is an EMBEDDED LIBRARY. It runs inside an application's own
process and has no server, no network service, and no multi-tenant surface
of its own. The sections below are written for that shape: what is
restricted is offering Okto Grafx ITSELF to third parties as a service or a
product, not building your own application on top of it.

I. Hosted or Managed Service - PROHIBITED uses
-----------------------------------------------

For the purposes of Section 2, the following constitute providing the
software as a "hosted or managed service" and are PROHIBITED:

(a) Operating a database-as-a-service, a hosted graph service, or any
    API, platform, or application whose purpose is to give end users
    from more than one client organization access to the features or
    functionality of Okto Grafx itself - its storage engine, its query
    surface, its transactions, or its vector search - whether directly
    or through a wrapper, proxy, or abstraction layer.

(b) Providing the software as a white-label, embedded, OEM, or rebranded
    offering to third parties, including redistributing it as a
    component of a product where the origin of the software is
    concealed.

(c) Offering the software, any derivative work of it, or any substantial
    portion of its features or functionality as a product, service, or
    platform that competes with Okto Grafx, regardless of whether the
    deployment is single-tenant or multi-tenant.

(d) Internal large-scale platform exposure - operating the software as
    an internally hosted database service that meets BOTH of the
    following conditions simultaneously:

    (i)  the software, or modules extracted, externalized, or repackaged
         from it, are exposed as a hosted database service, query API,
         or internal data platform to users within your organization who
         are not directly involved in developing or operating the
         application that embeds it; AND

    (ii) the total population of such exposed users exceeds two hundred
         (200) individuals.

    Both conditions (i) and (ii) must be met for this prohibition to
    apply. Local, desktop, workstation, and in-process application use
    of the software by any number of individuals is never restricted by
    this clause.

    This clause exists to prevent large organizations from extracting the
    engine and serving it at scale as an internal database-as-a-service.
    It is not intended to limit normal use of the library inside
    applications, no matter how large the organization or how many people
    use those applications.

II. PERMITTED uses
-------------------

The following are expressly permitted, including for commercial purposes
and including when financial consideration is exchanged:

(a) EMBEDDING the software in your own application or service as its
    storage engine, and distributing or operating that application -
    including as a multi-tenant SaaS - provided the application does not
    expose Okto Grafx's own features or query surface to third parties
    as described in Section I(a). An application that uses Okto Grafx to
    store its data is providing ITS features, not the software's, and is
    not restricted by this license.

(b) Using the software internally within your organization, without any
    numeric or scale restriction, for your own products, data, and
    operations.

(c) Hosting a single-tenant deployment of an application built on the
    software for yourself or for a single client organization. Each
    distinct client organization must receive its own dedicated instance
    where Section I(a) would otherwise apply.

(d) Providing consulting, integration, customization, deployment, or
    managed operations services using the software, including charging
    fees for such services, provided that:

    (i)   the offering does not constitute a hosted service under
          Section I(a) or a competing service under Section I(c), and
          does not exceed the thresholds of Section I(d);
    (ii)  the attribution requirements in Section III are honored.

(e) Modifying the software for personal or internal organizational use,
    including for commercial purposes, subject to Sections I and III.

(f) Building, publishing, and distributing adapters that satisfy the
    software's port protocols, tools that read or verify databases it
    writes, and libraries that build on its public API - including under
    a license of your choosing for your own original code, provided the
    software itself is not redistributed in violation of these terms.

(g) Academic, research, evaluation, and benchmarking use, including
    publishing the results of benchmarks. No permission is required to
    publish a measurement of this software, favorable or otherwise.

III. Attribution - REQUIRED preservation
-----------------------------------------

You may not alter, remove, obscure, hide, replace, or otherwise diminish
the visibility of any of the following in any distribution, deployment,
or derivative work of the software:

(a) The "Okto Labs" name.
(b) The "Okto Grafx" name.
(c) Copyright and licensing notices identifying Okto Labs as the
    licensor, including this LICENSE file and the package metadata.

Because Okto Grafx is a library rather than a user-facing application,
these elements MUST remain intact in:

(a) The source distribution and any built package, including the LICENSE
    file, the package metadata, and the module-level version identifier.

(b) The command-line interface, including the output of `--version` and
    equivalent commands, and help and usage screens.

(c) Any documentation, README, or notice file that accompanies a
    redistribution of the software or a derivative work of it.

This section does NOT require an application that merely EMBEDS the
software to display Okto Labs branding in that application's own user
interface. Attribution in the application's dependency, license, or
acknowledgements listing is sufficient and is encouraged.

You MAY add your own branding, notices, or attributions alongside the
required Okto Labs and Okto Grafx marks, but you may NOT replace them or
misrepresent the origin of the software.

IV. Clarifications
-------------------

If you are unsure whether your intended use constitutes a hosted service
under Section I(a), a competing service under Section I(c), an internal
large-scale platform exposure under Section I(d), or otherwise requires a
commercial license, contact the licensor at dev@oktolabs.ai for
clarification or to negotiate a commercial agreement.

The licensor's intent is that building applications on Okto Grafx is
unrestricted, and that selling Okto Grafx is not. Where a use is
genuinely ambiguous, ask.
