Document:

<PAGE>

                                                                   Exhibit 10.23

                          FULL RECOURSE PROMISSORY NOTE

$25,000.00                                                        April 12, 2002

      For value received, the undersigned promises to pay to XenoPort, Inc., a
Delaware corporation (the "Company"), or order, at its principal office the
principal sum of $25,000.00 with interest thereon at the rate of 4.65 percent
(4.65%) per annum on the unpaid balance of the principal sum. Said principal and
interest shall be due on April 12, 2007.

      Upon any termination of the employment between the undersigned and the
Company, this Note shall be immediately due and payable.

      Principal payable in lawful money of the United States of America. THE
PRIVILEGE IS RESERVED TO PREPAY ANY PORTION OF THE NOTE AT ANY TIME.

      Should suit be commenced to collect this Note or any portion thereof, such
sum as the Court may deem reasonable shall be added hereto as attorneys' fees.
The maker waives presentment for payment, protest, notice of protest, and notice
of non-payment of this Note.

      This Note is secured by a pledge of certain shares of Common Stock of the
Company, pursuant to the provisions of the Restricted Stock Purchase Agreement
and the Security Agreement between the Company and the undersigned executed
contemporaneously with this Note.

      The holder of this Note shall have full recourse against the maker, and
shall not be required to proceed against the Shares or other collateral securing
this Note in the event of default.

      The undersigned understands that the holding period under Rule 144 of the
Securities Act of 1933 generally will not begin to run until this Note has been
paid in full.

                                        /s/ Mark Gallop
                                        ------------------------
                                        Signature

                                        Mark Gallop
                                        ------------------------
                                        Printed Name

                                       1.
<PAGE>

                               SECURITY AGREEMENT

      This Security Agreement is made as of April 12, 2002 between XenoPort,
Inc., a Delaware corporation ("Pledgee"), and Mark Gallop ("Pledgor").

                                    Recitals

      Pursuant to Pledger's Promissory Note dated and given to Pledgee on the
date hereof (the "Note"). Pledgor has borrowed $25,000.00 from Pledgee and
wishes to secure repayment of the Note with shares of Pledgee's Common Stock
(the "Shares").

      NOW, THEREFORE, it is agreed as follows:

      1. Creation and Description of Security Interest. In consideration of the
loan of $25,000.00 to Pledgor under the Note, Pledgor, pursuant to the
California Commercial Code, hereby pledges 100,000 Shares (herein sometimes
referred to as the "Collateral") represented by certificate number 133, duly
endorsed in blank or with executed stock powers, and herewith delivers said
certificate to the Secretary or Assistant Secretary of Pledgee ("Pledgeholder"),
who shall hold said certificate subject to the terms and conditions of this
Security Agreement.

      The pledged Shares (together with an executed blank Assignment Separate
from Certificate for use in transferring all or a portion of the Shares to
Pledgee if, as and when required pursuant to this Security Agreement) shall be
held by the Pledgeholder as security for the repayment of the Note, and any
extensions or renewals thereof, executed by Pledgor, and the Pledgeholder shall
not encumber or dispose of such Shares except in accordance with the provisions
of this Security Agreement.

      2. Pledgor's Representations and Covenants. To induce Pledgee to enter
into this Security Agreement, Pledgor represents and covenants to Pledgee, its
successors and assigns, as follows:

            a. Payment of Indebtedness. Pledgor will pay the principal sum of
the Note secured hereby, together with interest thereon, at the time and in the
manner provided in the Note.

            b. Encumbrances. The Shares are free of all other encumbrances,
defenses and liens, and Pledgor will not further encumber the Shares without the
prior written consent of Pledgee.

            c. Margin Regulations. In the event that Pledgee's Common Stock is
now or later becomes margin listed by the Federal Reserve Board and Pledgee is
classified as a "lender" within the meaning of the regulations under Part 207 of
Title 12 of the Code of Federal Regulations ("Regulation G"), Pledgor agrees to
cooperate with Pledgee in making any amendments to the Note or providing any
additional collateral as may be necessary to comply with such regulations.

                                       1.
<PAGE>

      3. Voting Rights. During the term of this pledge and so long as all
payments of principal and interest are made as they become due under the terms
of the Note, Pledgor shall have the right to vote all of the Shares pledged
hereunder.

      4. Stock Adjustments. In the event that, during the term of the pledge,
any stock dividend, reclassification, readjustment or other changes are declared
or made in the capital structure of Pledgee, all new, substituted and additional
shares or other securities issued by reason of any such change, as they relate
to the Shares, shall be delivered to and held by the Pledgeholder under the
terms of this Security Agreement in the same manner as the Shares originally
pledged hereunder. In the event of substitution of such securities, Pledgor,
Pledgee and Pledgeholder shall cooperate and execute such documents as are
reasonable so as to provide for the substitution of such Collateral and, upon
such substitution, references to "Shares" in this Security Agreement shall
include the substituted shares of capital stock of Pledgor as a result thereof.

      5. Options and Rights. In the event that, during the term of this pledge,
subscription options or other rights or options shall be issued in connection
with the pledged Shares, such subscription options or other rights or options
shall be the property of Pledgor and, if exercised by Pledgor, all new stock or
other securities so acquired by Pledgor, as they relate to the pledged Shares
then held by Pledgeholder, shall be immediately delivered to Pledgeholder, to be
held under the terms of this Security Agreement in the same manner as the Shares
pledged.

      6. Default. Pledgor shall be deemed to be in default of the Note and of
this Security Agreement in the event:

            a. Payment of principal or interest on the Note shall be delinquent
for a period of 10 days or more; or

            b. Pledgor fails to perform any of the covenants contained in this
Security Agreement for a period of 10 days after written notice thereof from
Pledgee.

      In the case of an event of Default, as set forth above, Pledgee shall have
the right to accelerate payment of the Note upon notice to Pledgor, and Pledgee
shall thereafter be entitled to pursue its remedies under the California
Commercial Code, including the right to sell the pledged Shares at a private or
public sale, or to repurchase the pledged Shares. The parties agree that the
repurchasing of the pledged Shares by the Company, or by any person to whom the
Company may have assigned its rights hereunder, is commercially reasonable if
made at the Fair Market Value (as defined below) of the pledged Shares.

      7. Fair Market Value. "Fair Market Value" means, as of any date, the value
of Common Stock determined as follows:

            a. If the pledged Shares are listed on any established stock
exchange or a national market system, including without limitation the Nasdaq
National Market or The Nasdaq SmallCap Market of The Nasdaq Stock Market, their
Fair Market Value shall be the closing sales price for such securities (or the
closing bid, if no sales were reported) as quoted on such exchange or system for
the last market trading day prior to the time of determination, as reported in
The Wall Street Journal;

                                       2.
<PAGE>

            b. If the pledged Shares are regularly quoted by a recognized
securities dealer but selling prices are not reported, the Fair Market Value of
a such securities shall be the mean between the high bid and low asked prices
for such securities on the date of determination, as reported in The Wall Street
Journal; or

            c. In the absence of an established market for the pledged Shares,
the Fair Market Value thereof shall be determined in good faith by the Board of
Directors of the Company.

      8. Application of Proceeds. The proceeds of any sale or repurchase of the
Shares shall be applied in the following order:

            a. To pay all reasonable expenses of the Company in enforcing the
Note, including reasonable attorney's fees.

            b. In satisfaction of the remaining indebtedness under the Note.

            c. To the Borrower, any remaining proceeds.

      9. Release of Collateral. Subject to any applicable contrary rules under
Regulation G, there shall be released from this pledge a portion of the pledged
Shares held by Pledgeholder hereunder upon payments and forgivenesses of the
principal of the Note. The number of the pledged Shares which shall be released
shall be that number of full Shares which bears the same proportion to the
initial number of Shares pledged hereunder as the payment or forgiveness of
principal bears to the initial full principal amount of the Note; provided,
however, that no Shares shall be released from this Pledge if the release of
such Shares would cause the Fair Market Value of the Shares held by Pledgeholder
following such release to fall below 125% of the remaining principal amount of
the Note following such release.

      10. Withdrawal or Substitution of Collateral. Pledgor shall not sell,
withdraw, pledge, substitute or otherwise dispose of all or any part of the
Collateral without the prior written consent of Pledgee.

      11. Term. The within pledge of Shares shall continue until the payment or
forgiveness of all indebtedness secured hereby, at which time the remaining
pledged stock shall be promptly delivered to Pledger, subject to the provisions
for prior release of a portion of the Collateral as provided in paragraph 9
above.

      12. Insolvency. Pledgor agrees that if a bankruptcy or insolvency
proceeding is instituted by or against it, or if a receiver is appointed for the
property of Pledgor, or if Pledgor makes an assignment for the benefit of
creditors, the entire amount unpaid on the Note shall become immediately due and
payable, and Pledgee may proceed as provided in the case of default.

      13. Pledgeholder Liability. In the absence of willful or gross negligence,
Pledgeholder shall not be liable to any party for any of his acts, or omissions
to act, as Pledgeholder.

                                       3.
<PAGE>

      14. Invalidity of Particular Provisions. Pledgor and Pledgee agree that
the enforceability or invalidity of any provision or provisions of this Security
Agreement shall not render any other provision or provisions herein contained
unenforceable or invalid.

      15. Successors or Assigns. Pledgor and Pledgee agree that all of the terms
of this Security Agreement shall be binding on their respective successors and
assigns, and that the term "Pledgor" and the term "Pledgee" as used herein shall
be deemed to include, for all purposes, the respective designees, successors,
assigns, heirs, executors and administrators.

      16. Governing Law. This Security Agreement shall be interpreted and
governed under the laws of the State of California.

      IN WITNESS WHEREOF, the parties hereto have executed this Agreement as of
the day and year first above written.

      "PLEDGOR"                     /s/ Mark Gallop
                                    --------------------------------------------
                                    Signature

                                    Mark Gallop
                                    --------------------------------------------
                                    Printed Name

                                    Address:
                                                ----------------------------
                                                ----------------------------

      "PLEDGEE"                     XENOPORT, INC.
                                    a Delaware corporation

                                    By: /s/ Ronald W. Barrett

                                    Title: President & Chief Executive Officer

      "PLEDGEHOLDER"                /s/ Alexander Phillips
                                    --------------------------------------------
                                    Signature

                                    Alexander D. Phillips - Assistant Secretary
                                    --------------------------------------------
                                    Printed Name

                                       4.<PAGE>

                                                                   Exhibit 10.24

                                    EXHIBIT B

                    PROMISSORY NOTE SECURED BY DEED OF TRUST

$100,000.00                                              Santa Clara, California
                                                                    May 17, 2002

      FOR VALUE RECEIVED, the undersigned, William G. Harris ("Borrower"),
promise to pay to XenoPort, Inc., a Delaware corporation (the "Company"), or
order, the principal amount of One Hundred Thousand Dollars ($100,000.00). The
outstanding principal amount shall bear interest from such date until paid at a
rate of four and ninety-nine one hundredths percent (4.99%) per annum. All
payments shall be credited first to accrued interest and then to principal.

      The outstanding principal amount and any interest accrued thereon shall be
due and payable to the holder hereof at 3410 Central Expressway, Santa Clara,
California 95051, or such other place as the holder hereof may designate, upon
the earlier of the following dates (collectively, "Maturity Events"):

      (i) ninety (90) days following the date of termination of the employment
of Borrower with the Company, whether voluntary or involuntary, and whether with
cause or without cause, except for a termination described in Section 5(b) of
the Restricted Stock Purchase Agreement between the Borrower and the Company
dated on or about January 11, 2002, in which case twelve (12) months following
the date of such termination shall be the applicable Maturity Event;

      (ii) the date of any sale, conveyance, assignment, alienation or any other
form of transfer, whether voluntary or involuntary, of that certain real
property commonly known as 120 Croydon Way, Woodside, California (the
"Property"), or any part thereof or interest therein; except that the following
transfers of the Property shall not be deemed to be a Maturity Event:

            a) a transfer upon the death of Borrower to Borrower's surviving
spouse (provided the surviving spouse is an obligor hereunder) or to Borrower
upon the death of Borrower's surviving spouse;

            b) a transfer by an obligor hereof whereby such obligor's spouse
becomes a co-owner of the Property;

            c) a transfer resulting from a decree of dissolution of the marriage
or legal separation of Borrower and Borrower's spouse or from a property
settlement agreement incidental to such a decree which requires the obligor
spouse to assume responsibility for the obligations under this Note and the Deed
of Trust (hereinafter defined) and pursuant to which Borrower or Borrower's
spouse (whoever is the obligor) becomes the sole owner of the Property; or

            d) or a transfer by an obligor hereof into an inter vivos trust in
which an obligor hereof is a beneficiary; or

<PAGE>

      (iii) the seventh anniversary of the date of this Note.

      In the event that any of the following occurs, then unless otherwise
prohibited by law, the holder hereof shall have the option, without demand or
notice, to declare the entire outstanding principal balance of this Note,
together with all accrued and unpaid interest thereon to be immediately due and
payable: (i) Borrower's default in the payment of principal or interest when due
pursuant to the terms hereof; (ii) Borrower's default in its performance of any
obligation contained in the deed of trust encumbering the Property and securing
this Note (the "Deed of Trust") or any other deed of trust, security agreement
or other agreement (including any amendment, modification or extension thereof)
which may hereafter be executed by Borrower for the purpose of securing this
Note; (iii) any representation or warranty contained in this Note, the Deed of
Trust, or any other agreement or instrument executed in connection with the loan
proves to have been false or misleading in any material respect; (iv) Borrower's
default in its obligation to pay any indebtedness or to perform any other
obligation which is secured by a deed of trust or other lien on the Property or
default under any deed of trust securing such indebtedness; (v) Borrower's
default in its obligation to pay any indebtedness evidenced by any promissory
note executed by Borrower and payable to the holder hereof or there occurs any
other default under any deed of trust, mortgage or other document securing
repayment of such indebtedness; or (vi) the amount of the indebtedness
encumbering the Property secured by a deed of trust, lien or other encumbrance
that is senior to the Deed of Trust is increased over the amount of such
indebtedness existing as of the date of this Note.

      The principal amount evidenced by this Note shall be used by Borrower to
purchase the Property which shall become the primary residence of Borrower. This
Note shall be secured by the Deed of Trust given by Borrower to the Company.

      In the event any amount owed by Borrower pursuant to this Note is not paid
when due, such unpaid amount shall bear interest from the due date until paid at
a rate equal to the lower of: (i) ten percent (10%) per annum; or (ii) the
maximum rate permitted by law. After such due date, all payments shall be
credited first to accrued interest and then to principal.

      Notwithstanding anything to the contrary contained in this Note, so long
as Borrower remains employed with the Company, on each anniversary of the date
of this Note, the Company shall automatically forgive all interest then accrued
pursuant to the terms of this Note; provided that in the event that the
employment of Borrower with the Company terminates prior to the forgiveness of
all of the interest obligations under this Note, the unforgiven, unpaid interest
then accrued hereunder shall become due and payable according to the provisions
above with respect to Maturity Events.

      If an action is instituted for collection of this Note, the Borrower agree
to pay court costs and reasonable attorneys' fees incurred by the holder
thereof.

      This Note may be amended or modified, and provisions hereof may be waived,
only by the written agreement of Borrower and the holder hereof. No delay or
failure by the holder hereof in exercising any right, power or remedy hereunder
shall operate as a waiver of such right, power or remedy, and a waiver of any
right, power or remedy on any one occasion shall not operate as a bar or waiver
of any such right, power or remedy on any other occasion. Without

<PAGE>

limiting the generality of the foregoing, the delay or failure by the holder
hereof for any period of time to enforce collection of any amounts due hereunder
shall not be deemed to be a waiver of any rights of the holder hereof under
contract or under law. The rights of the Company under this Note are in addition
to any other rights and remedies which the holder hereof may have.

      This Note shall be governed by and construed in accordance with the laws
of the State of California.

      This Note may be prepaid at any time without penalty.

      THIS NOTE, THE DEED OF TRUST AND ALL RELATED DOCUMENTATION ARE EXECUTED
VOLUNTARILY AND WITHOUT ANY DURESS OR UNDUE INFLUENCE ON THE PART OR BEHALF OF
THE PARTIES HERETO, WITH THE FULL INTENT OF CREATING THE OBLIGATIONS AND
SECURITY INTERESTS DESCRIBED HEREIN AND THEREIN. THE PARTIES ACKNOWLEDGE THAT:
(a) THEY HAVE READ SUCH DOCUMENTATION; (b) THEY HAVE BEEN REPRESENTED IN THE
PREPARATION, NEGOTIATION AND EXECUTION OF SUCH DOCUMENTATION BY LEGAL COUNSEL OF
THEIR OWN CHOICE OR THAT THEY HAVE VOLUNTARILY DECLINED TO SEEK SUCH COUNSEL;
(c) THEY UNDERSTAND THE TERMS AND CONSEQUENCES OF THIS NOTE, THE DEED OF TRUST
AND ALL RELATED DOCUMENTATION AND THE OBLIGATIONS THEY CREATE; AND (d) THEY ARE
FULLY AWARE OF THE LEGAL AND BINDING EFFECT OF THIS NOTE, THE DEED OF TRUST AND
THE OTHER DOCUMENTS CONTEMPLATED BY THIS AGREEMENT. WITHOUT LIMITING THE
GENERALITY OF THE FOREGOING, BORROWER HEREBY ACKNOWLEDGES THAT THE COMPANY HAS
MADE NO REPRESENTATION OR WARRANTY TO BORROWER CONCERNING THE INCOME TAX
CONSEQUENCES OF THE LOAN TO BORROWER, AND BORROWER SHALL BE SOLELY RESPONSIBLE
FOR ASCERTAINING AND BEARING SUCH TAX CONSEQUENCES. BORROWER FURTHER
ACKNOWLEDGES THAT (i) THE COMPANY MAY, IN ITS SOLE DISCRETION, DETERMINE THAT IT
IS REQUIRED UNDER THE INTERNAL REVENUE CODE OF 1986, AS AMENDED (THE "CODE"),
AND THE RULES AND REGULATIONS PROMULGATED BY THE INTERNAL REVENUE SERVICE
("IRS") THEREUNDER, TO IMPUTE INTEREST ON THE PRINCIPAL OF THIS NOTE AT THE RATE
SET BY THE IRS, (ii) THE AMOUNT OF ANY SUCH IMPUTED INTEREST WOULD BE DEEMED TO
BE COMPENSATION INCOME TO EMPLOYEE WHICH WOULD BE SUBJECT TO TAX WITHHOLDING,
AND (iii) IF SO DETERMINED BY THE COMPANY, THE COMPANY WOULD REPORT AND WITHHOLD
THE REQUIRED AMOUNT OUT OF THE CURRENT COMPENSATION PAID TO EMPLOYEE IN
ACCORDANCE WITH THE CODE AND THE RULES AND REGULATIONS PROMULGATED THEREUNDER.

BORROWER:                               COMPANY:

Signature: /s/ William G. Harris        Signature: /s/ Ronald W. Barrett
           -------------------------               -----------------------------
             William G. Harris                            Ronald W. Barrett
                                                          President & CEO

<PAGE>

      THIS NOTE IS SUBJECT TO SECTION 2924i OF THE CALIFORNIA CIVIL CODE, WHICH
PROVIDES THAT THE HOLDER OF THIS NOTE SHALL GIVE WRITTEN NOTICE TO THE TRUSTOR,
OR HIS SUCCESSOR IN INTEREST, OF PRESCRIBED INFORMATION AT LEAST 90 AND NOT MORE
THAN 150 DAYS BEFORE ANY BALLOON PAYMENT IS DUE.

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00077-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00077-of-00352.parquet"}]]